From: Andreas Müller Date: Fri, 1 Nov 2013 15:22:11 +0000 (+0000) Subject: remove use of TermService.findByEnum X-Git-Tag: 3.6.0~903 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/a1a93b943f442486551c3a9188e2bda653a3504f remove use of TermService.findByEnum --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java index a8d278d3b..7e251cba7 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java @@ -135,10 +135,10 @@ public class NamedAreaSelectionDialog extends private List> getVocabularies(){ List> vocabularies = CdmStore.getService(IVocabularyService.class).listByTermClass(NamedArea.class, null, null, null, null); - vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.TdwgArea)); - vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Country)); - vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Waterbody)); - vocabularies.add(CdmStore.getService(IVocabularyService.class).getVocabulary(VocabularyEnum.Continent)); + vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.TdwgArea.getUuid())); + vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Country.getUuid())); + vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Waterbody.getUuid())); + vocabularies.add(CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.Continent.getUuid())); return vocabularies; }