mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-22 16:30: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
|
||||
*/
|
||||
@Override
|
||||
void onClick() {
|
||||
|
||||
}
|
||||
protected void onClick() {}
|
||||
|
||||
@Override
|
||||
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
|
||||
*/
|
||||
public void onClick(){
|
||||
public final void onClick(){
|
||||
Platform.runLater(() -> {
|
||||
primaryStage.show();
|
||||
primaryStage.requestFocus();
|
||||
|
Loading…
Reference in New Issue
Block a user