Revision b30d0fe8
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/e4/RemotingCdmHandlerE4.java | ||
---|---|---|
19 | 19 |
import org.eclipse.e4.ui.services.IServiceConstants; |
20 | 20 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
21 | 21 |
import org.eclipse.jface.dialogs.ErrorDialog; |
22 |
import org.eclipse.jface.viewers.TreeSelection;
|
|
22 |
import org.eclipse.jface.viewers.IStructuredSelection;
|
|
23 | 23 |
import org.eclipse.swt.widgets.Shell; |
24 | 24 |
|
25 | 25 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
... | ... | |
42 | 42 |
} |
43 | 43 |
|
44 | 44 |
@Execute |
45 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection,
|
|
45 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection,
|
|
46 | 46 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
47 | 47 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
48 | 48 |
MHandledMenuItem menuItem) { |
... | ... | |
75 | 75 |
onComplete(); |
76 | 76 |
} |
77 | 77 |
|
78 |
public abstract IStatus allowOperations(TreeSelection selection,
|
|
78 |
public abstract IStatus allowOperations(IStructuredSelection selection,
|
|
79 | 79 |
Shell shell, |
80 | 80 |
MPart activePart, |
81 | 81 |
MHandledMenuItem menuItem); |
82 | 82 |
|
83 |
public abstract AbstractOperation prepareOperation(TreeSelection selection,
|
|
83 |
public abstract AbstractOperation prepareOperation(IStructuredSelection selection,
|
|
84 | 84 |
Shell shell, |
85 | 85 |
MPart activePart, |
86 | 86 |
MHandledMenuItem menuItem); |
Also available in: Unified diff
ref #6598 refactore method signature for remote handlers