Project

General

Profile

« Previous | Next » 

Revision bae281da

Added by Patrick Plitzner over 5 years ago

ref #7837 Make feature tree export experimental

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/FeatureTreeExportHandler.java
30 30
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureNodeDropAdapter;
31 31
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor;
32 32
import eu.etaxonomy.taxeditor.model.MessagingUtils;
33
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
33 34
import eu.etaxonomy.taxeditor.store.CdmStore;
34 35

  
35 36
/**
......
74 75
            @Optional@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection,
75 76
            MHandledMenuItem menuItem) {
76 77
        boolean canExecute = false;
77
        canExecute = selection!=null
78
        canExecute = PreferencesUtil.getBooleanValue(PreferencesUtil.SHOW_EXPERIMENTAL_FEATURES)
79
                && selection!=null
78 80
                && selection.size()==1
79 81
                && selection.getFirstElement() instanceof FeatureTree;
80 82
        menuItem.setVisible(canExecute);

Also available in: Unified diff