Revision eb759485
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CloneClassificationHandlerE4.java | ||
---|---|---|
3 | 3 |
import javax.inject.Named; |
4 | 4 |
|
5 | 5 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
6 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
6 | 7 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
7 | 8 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
8 | 9 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
32 | 33 |
*/ |
33 | 34 |
public class CloneClassificationHandlerE4 { |
34 | 35 |
|
36 |
@Execute |
|
35 | 37 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
36 | 38 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
37 | 39 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CopyHandlerE4.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.core.runtime.IStatus; |
14 | 14 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
15 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
15 | 16 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
16 | 17 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
17 | 18 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
33 | 34 |
*/ |
34 | 35 |
public class CopyHandlerE4 { |
35 | 36 |
|
37 |
@Execute |
|
36 | 38 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
37 | 39 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
38 | 40 |
MHandledMenuItem menuItem) { |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CreateClassificationHierarchyHandlerE4.java | ||
---|---|---|
3 | 3 |
import javax.inject.Named; |
4 | 4 |
|
5 | 5 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
6 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
6 | 7 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
7 | 8 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
8 | 9 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
27 | 28 |
*/ |
28 | 29 |
public class CreateClassificationHierarchyHandlerE4 { |
29 | 30 |
|
31 |
@Execute |
|
30 | 32 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
31 | 33 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
32 | 34 |
|
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/DeleteHandlerE4.java | ||
---|---|---|
16 | 16 |
import javax.inject.Named; |
17 | 17 |
|
18 | 18 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
19 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
19 | 20 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
20 | 21 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
21 | 22 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
56 | 57 |
protected static final String DO_YOU_REALLY_WANT_TO_DELETE_THE_CLASSIFICATION = Messages.DeleteHandler_DELETE_CLASSIFICATION; |
57 | 58 |
protected static final String CONFIRM_DELETION = Messages.DeleteHandler_CONFIRM_DELETE; |
58 | 59 |
|
60 |
@Execute |
|
59 | 61 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
60 | 62 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
61 | 63 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/MoveFactualDataHandlerE4.java | ||
---|---|---|
7 | 7 |
import javax.inject.Named; |
8 | 8 |
|
9 | 9 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
10 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
10 | 11 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
11 | 12 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
12 | 13 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
29 | 30 |
|
30 | 31 |
public class MoveFactualDataHandlerE4 { |
31 | 32 |
|
33 |
@Execute |
|
32 | 34 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
33 | 35 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
34 | 36 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/MoveTaxonHandlerE4.java | ||
---|---|---|
19 | 19 |
import javax.inject.Named; |
20 | 20 |
|
21 | 21 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
22 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
22 | 23 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
23 | 24 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
24 | 25 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
51 | 52 |
|
52 | 53 |
private TaxonNode parentTaxonNode; |
53 | 54 |
|
55 |
@Execute |
|
54 | 56 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
55 | 57 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
56 | 58 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/NewClassificationHandlerE4.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import javax.inject.Named; |
13 | 13 |
|
14 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
14 | 15 |
import org.eclipse.e4.ui.services.IServiceConstants; |
15 | 16 |
import org.eclipse.jface.wizard.WizardDialog; |
16 | 17 |
import org.eclipse.swt.widgets.Shell; |
... | ... | |
25 | 26 |
*/ |
26 | 27 |
public class NewClassificationHandlerE4 { |
27 | 28 |
|
29 |
@Execute |
|
28 | 30 |
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell) { |
29 | 31 |
NewClassificationWizard wizard = new NewClassificationWizard(); |
30 | 32 |
wizard.init(null, null); |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/NewTaxonNodeHandlerE4.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import org.eclipse.core.runtime.IStatus; |
15 | 15 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
16 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
16 | 17 |
import org.eclipse.e4.ui.services.IServiceConstants; |
17 | 18 |
import org.eclipse.jface.viewers.TreeSelection; |
18 | 19 |
import org.eclipse.jface.wizard.WizardDialog; |
... | ... | |
30 | 31 |
*/ |
31 | 32 |
public class NewTaxonNodeHandlerE4 { |
32 | 33 |
|
34 |
@Execute |
|
33 | 35 |
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell) throws Exception { |
34 | 36 |
|
35 | 37 |
final NewTaxonNodeWizard wizard = new NewTaxonNodeWizard(); |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RefreshTreeHandlerE4.java | ||
---|---|---|
12 | 12 |
import javax.inject.Named; |
13 | 13 |
|
14 | 14 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
15 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
15 | 16 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
16 | 17 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
17 | 18 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
28 | 29 |
*/ |
29 | 30 |
public class RefreshTreeHandlerE4 { |
30 | 31 |
|
32 |
@Execute |
|
31 | 33 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
32 | 34 |
|
33 | 35 |
TaxonNavigatorE4 taxonNavigator = (TaxonNavigatorE4) activePart.getObject(); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/e4/RemotingCdmHandlerE4.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.core.commands.operations.AbstractOperation; |
14 | 14 |
import org.eclipse.core.runtime.IStatus; |
15 |
import org.eclipse.e4.core.di.annotations.Execute; |
|
15 | 16 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
16 | 17 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
17 | 18 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
35 | 36 |
this.label = label; |
36 | 37 |
} |
37 | 38 |
|
39 |
@Execute |
|
38 | 40 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
39 | 41 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
40 | 42 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
Also available in: Unified diff
ref #6909 Add missing @Execute annotation