Project

General

Profile

« Previous | Next » 

Revision cb89f4f7

Added by Andreas Müller almost 5 years ago

ref #6794 adapt TaxEditor to new term structure (rename FeatureNode and FeatureTree)

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/FeatureTreeExportOntologyHandler.java
28 28
import org.eclipse.ui.progress.IProgressConstants;
29 29

  
30 30
import eu.etaxonomy.cdm.io.descriptive.owl.out.StructureTreeOwlExportConfigurator;
31
import eu.etaxonomy.cdm.model.term.FeatureTree;
31
import eu.etaxonomy.cdm.model.term.TermTree;
32 32
import eu.etaxonomy.taxeditor.featuretree.e4.IFeatureTreeEditor;
33 33
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
34 34
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
......
53 53
        }
54 54

  
55 55
        List<UUID> featureTreeUuids = new ArrayList<>();
56
        selection.toList().stream().filter(o->o instanceof FeatureTree).forEach(tree->featureTreeUuids.add(((FeatureTree)tree).getUuid()));
56
        selection.toList().stream().filter(o->o instanceof TermTree).forEach(tree->featureTreeUuids.add(((TermTree)tree).getUuid()));
57 57

  
58 58
        FileDialog dialog = new FileDialog(shell);
59 59
        String[] filterNames = {
......
90 90
        canExecute = PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES)
91 91
                && selection!=null
92 92
                && selection.size()==1
93
                && selection.getFirstElement() instanceof FeatureTree;
93
                && selection.getFirstElement() instanceof TermTree;
94 94
        menuItem.setVisible(canExecute);
95 95
        return canExecute;
96 96
    }

Also available in: Unified diff