import eu.etaxonomy.taxeditor.featuretree.e4.operation.MoveFeatureOperation;
import eu.etaxonomy.taxeditor.l10n.Messages;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
-import eu.etaxonomy.taxeditor.store.StoreUtil;
import eu.etaxonomy.taxeditor.ui.dialog.selection.TermVocabularySelectionDialog;
import eu.etaxonomy.taxeditor.view.webimport.termimport.wrapper.OntologyTermWrapper;
}
}
if(droppedObject instanceof TermNodeDto){
- if (((TermNodeDto)droppedObject).getUuid() == null){
- if(StoreUtil.promptCheckIsDirty(editor)){
- return false;
- }
+ if (((TermNodeDto)droppedObject).getUuid() == null || target.getUuid() == null){
+ MessagingUtils.warningDialog("The new imported node needs to be saved first", this, "Newly created nodes can not be moved or used as parent without saving");
+ return false;
}
TermNodeDto droppedNode = editor.getNodeDtoForUuid(((TermNodeDto) droppedObject).getUuid());
TermNodeDto oldParent = editor.getNodeDtoForUuid(droppedNode.getParentUuid());