mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 00:40:51 +01:00
Merge pull request #155 from WiredSpast/master
Allow onClick method to be overridden in console extensions
This commit is contained in:
commit
feb1f2a527
@ -169,9 +169,7 @@ public abstract class ExtensionBase extends IExtension {
|
|||||||
* The application got doubleclicked from the G-Earth interface. Doing something here is optional
|
* The application got doubleclicked from the G-Earth interface. Doing something here is optional
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
void onClick() {
|
protected void onClick() {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ExtensionInfo getInfoAnnotations() {
|
protected ExtensionInfo getInfoAnnotations() {
|
||||||
|
@ -67,7 +67,7 @@ public abstract class ExtensionForm extends ExtensionBase {
|
|||||||
/**
|
/**
|
||||||
* The application got doubleclicked from the G-Earth interface. Doing something here is optional
|
* The application got doubleclicked from the G-Earth interface. Doing something here is optional
|
||||||
*/
|
*/
|
||||||
public void onClick(){
|
public final void onClick(){
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
primaryStage.requestFocus();
|
primaryStage.requestFocus();
|
||||||
|
Loading…
Reference in New Issue
Block a user