Revision 23d182dd
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/l10n/Messages.java | ||
---|---|---|
162 | 162 |
public static String DescriptionElementDropAdapter_NOT_SUPPORTED; |
163 | 163 |
public static String DescriptionElementDropAdapter_NOT_SUPPORTED_EMPTY_ELEMENT; |
164 | 164 |
public static String DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT; |
165 |
public static String DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT_IN_DESCRIPTION; |
|
165 | 166 |
public static String DescriptiveViewPart_COLLAPSE_ALL; |
166 | 167 |
public static String DescriptiveViewPart_EXPAND_ALL; |
167 | 168 |
public static String DescriptiveViewPart_FACTUAL_DATA; |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/l10n/messages.properties | ||
---|---|---|
47 | 47 |
DescriptionElementDropAdapter_NOT_SUPPORTED=Operation not supported yet |
48 | 48 |
DescriptionElementDropAdapter_NOT_SUPPORTED_EMPTY_ELEMENT=We are unable to drag and drop empty descriptions |
49 | 49 |
DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT=We are currently unable to drag and drop a newly created element. Please save the editor to make this work. |
50 |
DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT_IN_DESCRIPTION=Drag and Drop into descriptions containing unsaved factual data is not possible.\nPlease save to continue. |
|
50 | 51 |
DescriptiveViewPart_COLLAPSE_ALL=Collapse All |
51 | 52 |
DescriptiveViewPart_EXPAND_ALL=Expand All |
52 | 53 |
DescriptiveViewPart_FACTUAL_DATA=Factual Data |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/l10n/messages_de.properties | ||
---|---|---|
47 | 47 |
DescriptionElementDropAdapter_NOT_SUPPORTED=Vorgang noch nicht unterst?tzt |
48 | 48 |
DescriptionElementDropAdapter_NOT_SUPPORTED_EMPTY_ELEMENT=Drag and Drop f?r leeren Beschreibungen noch nicht unterst?tzt |
49 | 49 |
DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT=Drag and Drop f?r neu erstellte Elemente noch nicht unterst?tzt. Bitte Editor speichern, um den Vorgang auszuf?hren. |
50 |
DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT_IN_DESCRIPTION=Drag and Drop in Beschreibungen, die nicht gespeicherte Fakten enthalten, wird noch nicht unterst?tzt. \nBitte speichern, um den Vorgang auszuf?hren. |
|
50 | 51 |
DescriptiveViewPart_COLLAPSE_ALL=Alles einklappen |
51 | 52 |
DescriptiveViewPart_EXPAND_ALL=Alles ausklappen |
52 | 53 |
DescriptiveViewPart_FACTUAL_DATA=Faktendaten |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptionElementDropAdapter.java | ||
---|---|---|
76 | 76 |
if (descriptionElement.getInDescription().equals(target)) { |
77 | 77 |
return false; |
78 | 78 |
} |
79 |
for (Object element : target.getElements()){ |
|
80 |
if (element instanceof DescriptionElementBase){ |
|
81 |
if( !((DescriptionElementBase)element).isPersited()){ |
|
82 |
MessagingUtils.warningDialog(OPERATION_NOT_SUPPORTED_YET, this, Messages.DescriptionElementDropAdapter_NOT_SUPPORTED_NEW_ELEMENT_IN_DESCRIPTION); |
|
83 |
return false; |
|
84 |
} |
|
85 |
|
|
86 |
} |
|
87 |
} |
|
79 | 88 |
description = descriptionElement.getInDescription(); |
80 | 89 |
description.removeElement(descriptionElement); |
81 | 90 |
target.addElement(descriptionElement); |
Also available in: Unified diff
ref #8115: fix move facts when not persisted facts exist