if (target instanceof TermNodeDto && ((TermNodeDto)target).getTree().isFlat() && getCurrentLocation() == LOCATION_ON){
isSupported = false;
}
+ TermDto term = null;
+ if (getSelectedObject() instanceof TermNodeDto){
+ term = ((TermNodeDto)getSelectedObject()).getTerm();
+ }
+ if ((target instanceof TermNodeDto && !((TermNodeDto)target).getTree().isAllowDuplicate() && ((TermNodeDto)target).getTree().getTerms().contains(term)) || (target instanceof TermTreeDto && !((TermTreeDto)target).isAllowDuplicate() && ((TermTreeDto)target).getTerms().contains(term))){
+ isSupported = false;
+ }
return isSupported;
}