Revision 845a6a70
Added by Patrick Plitzner over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
47 | 47 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
48 |
import eu.etaxonomy.cdm.api.service.IFeatureTreeService; |
|
49 | 48 |
import eu.etaxonomy.cdm.api.service.ITermService; |
49 |
import eu.etaxonomy.cdm.api.service.ITermTreeService; |
|
50 | 50 |
import eu.etaxonomy.cdm.model.description.Character; |
51 | 51 |
import eu.etaxonomy.cdm.model.description.Feature; |
52 | 52 |
import eu.etaxonomy.cdm.model.term.TermNode; |
... | ... | |
136 | 136 |
} |
137 | 137 |
}); |
138 | 138 |
|
139 |
List<TermTree> trees = CdmStore.getService(IFeatureTreeService.class).list(TermTree.class, null, null, null, null);
|
|
139 |
List<TermTree> trees = CdmStore.getService(ITermTreeService.class).list(TermTree.class, null, null, null, null);
|
|
140 | 140 |
viewer.setComparator(new FeatureTreeViewerComparator()); |
141 | 141 |
viewer.setInput(trees); |
142 | 142 |
|
... | ... | |
249 | 249 |
// commit the conversation and start a new transaction immediately |
250 | 250 |
conversation.commit(true); |
251 | 251 |
|
252 |
CdmStore.getService(IFeatureTreeService.class).saveOrUpdate((List)getRootEntities());
|
|
252 |
CdmStore.getService(ITermTreeService.class).saveOrUpdate((List)getRootEntities());
|
|
253 | 253 |
|
254 | 254 |
List<TermTree<Feature>> rootEntities = getRootEntities(); |
255 | 255 |
for (TermTree featureTree : rootEntities) { |
... | ... | |
268 | 268 |
private void initializeTrees() { |
269 | 269 |
Object[] expandedElements = viewer.getExpandedElements(); |
270 | 270 |
viewer.getTree().removeAll(); |
271 |
List<TermTree> trees = CdmStore.getService(IFeatureTreeService.class).list(TermTree.class, null, null, null, null);
|
|
271 |
List<TermTree> trees = CdmStore.getService(ITermTreeService.class).list(TermTree.class, null, null, null, null);
|
|
272 | 272 |
viewer.setInput(trees); |
273 | 273 |
viewer.setExpandedElements(expandedElements); |
274 | 274 |
} |
Also available in: Unified diff
ref #6794 Replace FeatureTreeService with TermTreeService