if(selectedTerms.size()==1){
if (selectedTerms.get(0) instanceof TermVocabularyDto) {
- if (VocabularyEnum.getVocabularyEnumByUuid(((TermVocabularyDto)selectedTerms.get(0)).getUuid()) != null)
- MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed");
- return;
+ if (VocabularyEnum.getVocabularyEnumByUuid(((TermVocabularyDto)selectedTerms.get(0)).getUuid()) != null) {
+ MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed");
+ return;
+ }
+
}
if (selectedTerms.get(0) instanceof TermDto) {
- if (VocabularyEnum.getVocabularyEnumByUuid(((TermDto)selectedTerms.get(0)).getVocabularyUuid()) != null)
- MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed");
- return;
+ if (VocabularyEnum.getVocabularyEnumByUuid(((TermDto)selectedTerms.get(0)).getVocabularyUuid()) != null) {
+ MessagingUtils.warningDialog("Move not possible", this, "Standard Vocabularies should not be changed");
+ return;
+ }
+
}
}
AbstractTermDto target = selectedTerms.get(0);