Project

General

Profile

« Previous | Next » 

Revision 5354f8db

Added by Katja Luther about 5 years ago

ref #8115: drag&drop is not allowed for not persisted elements in source and target description

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptionElementDropAdapter.java
85 85

  
86 86
					    }
87 87
					}
88
					for (Object element : descriptionElement.getInDescription().getElements()){
89
                        if (element instanceof DescriptionElementBase){
90
                           if( !((DescriptionElementBase)element).isPersited()){
91
                               MessagingUtils.warningDialog(OPERATION_NOT_SUPPORTED_YET, this, Messages.DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT_IN_DESCRIPTION);
92
                                return false;
93
                           }
94

  
95
                        }
96
                    }
88 97
					description = descriptionElement.getInDescription();
89 98
					description.removeElement(descriptionElement);
90 99
					target.addElement(descriptionElement);

Also available in: Unified diff