Merge pull request #155 from WiredSpast/master

Allow onClick method to be overridden in console extensions
This commit is contained in:
sirjonasxx 2023-06-16 10:19:58 +02:00 committed by GitHub
commit feb1f2a527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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() {

View File

@ -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();