Revision 6268cff8
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/AddChildFeatureHandler.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.cdm.model.description.Feature; |
28 | 28 |
import eu.etaxonomy.cdm.model.description.FeatureNode; |
29 | 29 |
import eu.etaxonomy.taxeditor.featuretree.AvailableFeaturesWizard; |
30 |
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor; |
|
30 |
import eu.etaxonomy.taxeditor.featuretree.e4.IFeatureTreeEditor;
|
|
31 | 31 |
import eu.etaxonomy.taxeditor.featuretree.e4.operation.AddFeatureOperation; |
32 | 32 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
33 | 33 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
... | ... | |
44 | 44 |
@Named(IServiceConstants.ACTIVE_PART)MPart thisPart, |
45 | 45 |
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection, |
46 | 46 |
UISynchronize sync) { |
47 |
FeatureTreeEditor editor = ((FeatureTreeEditor) thisPart.getObject());
|
|
47 |
IFeatureTreeEditor editor = ((IFeatureTreeEditor) thisPart.getObject());
|
|
48 | 48 |
if (StoreUtil.checkDirty(editor)) { |
49 | 49 |
return; |
50 | 50 |
} |
... | ... | |
69 | 69 |
@Named(IServiceConstants.ACTIVE_PART)MPart thisPart, |
70 | 70 |
MHandledMenuItem menuItem) { |
71 | 71 |
boolean canExecute = false; |
72 |
canExecute = thisPart.getObject() instanceof FeatureTreeEditor |
|
72 |
canExecute = thisPart.getObject() instanceof IFeatureTreeEditor
|
|
73 | 73 |
&& selection!=null |
74 | 74 |
&& selection.size()==1 |
75 | 75 |
&& selection.getFirstElement() instanceof FeatureNode; |
Also available in: Unified diff
ref #7923 Extract common interface for feature tree editors