Revision 6268cff8
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/CreateFeatureTreeHandler.java | ||
---|---|---|
18 | 18 |
import org.eclipse.e4.ui.services.IServiceConstants; |
19 | 19 |
|
20 | 20 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
21 |
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor; |
|
21 |
import eu.etaxonomy.taxeditor.featuretree.e4.IFeatureTreeEditor;
|
|
22 | 22 |
import eu.etaxonomy.taxeditor.featuretree.e4.operation.CreateFeatureTreeOperation; |
23 | 23 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
24 | 24 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
... | ... | |
32 | 32 |
|
33 | 33 |
@Execute |
34 | 34 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart thisPart, UISynchronize sync){ |
35 |
FeatureTreeEditor editor = (FeatureTreeEditor) thisPart.getObject();
|
|
35 |
IFeatureTreeEditor editor = (IFeatureTreeEditor) thisPart.getObject();
|
|
36 | 36 |
|
37 | 37 |
if (StoreUtil.checkDirty(editor)) { |
38 | 38 |
return; |
... | ... | |
50 | 50 |
@Named(IServiceConstants.ACTIVE_PART)MPart thisPart, |
51 | 51 |
MHandledMenuItem menuItem) { |
52 | 52 |
boolean canExecute = false; |
53 |
canExecute = thisPart.getObject() instanceof FeatureTreeEditor; |
|
53 |
canExecute = thisPart.getObject() instanceof IFeatureTreeEditor;
|
|
54 | 54 |
menuItem.setVisible(canExecute); |
55 | 55 |
return canExecute; |
56 | 56 |
} |
Also available in: Unified diff
ref #7923 Extract common interface for feature tree editors