Revision 150b624d
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/MoveDescriptionToOtherTaxonHandler.java | ||
---|---|---|
28 | 28 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
29 | 29 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
30 | 30 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
31 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
|
31 | 32 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.MoveDescriptionToOtherTaxonOperation; |
32 | 33 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
33 | 34 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
... | ... | |
65 | 66 |
editor = EditorUtil.getActiveMultiPageTaxonEditor(); |
66 | 67 |
if (this.editor.isDirty()){ |
67 | 68 |
boolean proceed = MessageDialog.openQuestion(null, |
68 |
"Save changes", "You have made changes that must be saved before this query can be executed. Would you like to proceed?");
|
|
69 |
Messages.MoveDescriptionToOtherTaxonHandler_SAVE_CHANGES, Messages.MoveDescriptionToOtherTaxonHandler_SAVE_CHANGES_MESSAGE);
|
|
69 | 70 |
if (proceed) { |
70 | 71 |
editor.doSave(EditorUtil.getMonitor()); |
71 | 72 |
} else { |
... | ... | |
113 | 114 |
} |
114 | 115 |
TaxonNode newAcceptedTaxonNode = TaxonNodeSelectionDialog.select(HandlerUtil.getActiveShell(event), |
115 | 116 |
editor.getConversationHolder(), |
116 |
"Choose the accepted taxon",
|
|
117 |
Messages.MoveDescriptionToOtherTaxonHandler_CHOOSE_ACC_TAXON,
|
|
117 | 118 |
excludeTaxa, |
118 | 119 |
node, |
119 | 120 |
classification); |
... | ... | |
137 | 138 |
} |
138 | 139 |
|
139 | 140 |
} catch (NotDefinedException e) { |
140 |
logger.warn("Command name not set"); |
|
141 |
logger.warn("Command name not set"); //$NON-NLS-1$
|
|
141 | 142 |
} |
142 | 143 |
} |
143 | 144 |
|
... | ... | |
167 | 168 |
MessagingUtils.error(this.getClass(), e); |
168 | 169 |
throw new RuntimeException(e); |
169 | 170 |
} catch (Exception e) { |
170 |
MessagingUtils.warningDialog("Could not create Taxon", this, e.getMessage());
|
|
171 |
MessagingUtils.warningDialog(Messages.MoveDescriptionToOtherTaxonHandler_CREATE_FAILED, this, e.getMessage());
|
|
171 | 172 |
} |
172 | 173 |
} |
173 | 174 |
|
Also available in: Unified diff
ref #4611 complete i18n for taxeditor.editor plugin