Project

General

Profile

Revision 5354f8db

ID5354f8db2e955cf9d4716360568c6510e0e125b1
Parent 28c02ec4
Child e627dccd

Added by Katja Luther about 1 year 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

Add picture from clipboard (Maximum size: 40 MB)