From ef32cd3e6bc0cb0cd4ebb0bf226557a713c65d13 Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Wed, 12 Apr 2017 17:28:56 +0200
Subject: [PATCH] ref #6566 Migrate org.eclipse.ui.main.menu.admin DB items
---
.../fragment.e4xmi | 13 ++++-
eu.etaxonomy.taxeditor.application/plugin.xml | 48 -------------------
.../META-INF/MANIFEST.MF | 3 +-
eu.etaxonomy.taxeditor.store/plugin.xml | 21 ++++----
.../OpenDatabasePreferencesWizardHandler.java | 16 +++----
.../OpenDatabaseRepairWizardHandler.java | 14 +++---
6 files changed, 37 insertions(+), 78 deletions(-)
diff --git a/eu.etaxonomy.taxeditor.application/fragment.e4xmi b/eu.etaxonomy.taxeditor.application/fragment.e4xmi
index 9b638aeaf..4e1519766 100644
--- a/eu.etaxonomy.taxeditor.application/fragment.e4xmi
+++ b/eu.etaxonomy.taxeditor.application/fragment.e4xmi
@@ -36,7 +36,14 @@
-
+
+
+
+
+
+
+
+
@@ -46,6 +53,8 @@
+
+
@@ -65,5 +74,7 @@
+
+
diff --git a/eu.etaxonomy.taxeditor.application/plugin.xml b/eu.etaxonomy.taxeditor.application/plugin.xml
index a291def0c..e47ecf18c 100644
--- a/eu.etaxonomy.taxeditor.application/plugin.xml
+++ b/eu.etaxonomy.taxeditor.application/plugin.xml
@@ -65,38 +65,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -151,22 +119,6 @@
commandId="org.eclipse.ui.help.aboutAction"
label="%command.label.19">
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1376,6 +1366,17 @@
+
+
+
+
+
+
+
+
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabasePreferencesWizardHandler.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabasePreferencesWizardHandler.java
index cdc277891..9eb00c80a 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabasePreferencesWizardHandler.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabasePreferencesWizardHandler.java
@@ -8,27 +8,23 @@
*/
package eu.etaxonomy.taxeditor.handler;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.jface.wizard.WizardDialog;
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.DatabasePreferencesWizard;
-import eu.etaxonomy.taxeditor.store.StoreUtil;
+import eu.etaxonomy.taxeditor.model.AbstractUtility;
/**
* @author k.luther
* @date 18.11.2016
*
*/
-public class OpenDatabasePreferencesWizardHandler extends AbstractHandler{
+public class OpenDatabasePreferencesWizardHandler {
- String commandID = "eu.etaxonomy.taxeditor.store.open.OpenDatabasePreferencesWizardHandler";
-
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
+ @Execute
+ public Object execute(){
DatabasePreferencesWizard databasePreferencesWizard = new DatabasePreferencesWizard();
- WizardDialog dialog = new WizardDialog(StoreUtil.getShell(),
+ WizardDialog dialog = new WizardDialog(AbstractUtility.getShell(),
databasePreferencesWizard);
dialog.open();
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabaseRepairWizardHandler.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabaseRepairWizardHandler.java
index 697debaf4..a1deba1d3 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabaseRepairWizardHandler.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/OpenDatabaseRepairWizardHandler.java
@@ -8,13 +8,11 @@
*/
package eu.etaxonomy.taxeditor.handler;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.jface.wizard.WizardDialog;
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.DatabaseRepairWizard;
-import eu.etaxonomy.taxeditor.store.StoreUtil;
+import eu.etaxonomy.taxeditor.model.AbstractUtility;
@@ -23,15 +21,15 @@ import eu.etaxonomy.taxeditor.store.StoreUtil;
* @date 06.12.2016
*
*/
-public class OpenDatabaseRepairWizardHandler extends AbstractHandler {
+public class OpenDatabaseRepairWizardHandler{
/**
* {@inheritDoc}
*/
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
+ @Execute
+ public Object execute(){
DatabaseRepairWizard databaseRepairWizard = new DatabaseRepairWizard();
- WizardDialog dialog = new WizardDialog(StoreUtil.getShell(),
+ WizardDialog dialog = new WizardDialog(AbstractUtility.getShell(),
databaseRepairWizard);
dialog.open();
--
2.34.1