Revision 150b624d
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/DeleteHandler.java | ||
---|---|---|
32 | 32 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
33 | 33 |
import eu.etaxonomy.cdm.model.media.Media; |
34 | 34 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
35 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
|
35 | 36 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteDescriptionElementOperation; |
36 | 37 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteSpecimenDescriptionOperation; |
37 | 38 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.DeleteTaxonDescriptionOperation; |
... | ... | |
105 | 106 |
MediaDeletionConfigurator config = new MediaDeletionConfigurator(); |
106 | 107 |
|
107 | 108 |
DeleteConfiguratorDialog dialog; |
108 |
dialog = new DeleteConfiguratorDialog(config, HandlerUtil.getActiveShell(event), "Confirm Deletion", null, "Do you really want to delete the media?", MessageDialog.WARNING, new String[] { "Delete", "Skip" }, 0);
|
|
109 |
dialog = new DeleteConfiguratorDialog(config, HandlerUtil.getActiveShell(event), Messages.DeleteHandler_CONFIRM_DELETION, null, Messages.DeleteHandler_CONFIRM_DELETION_MESSAGE, MessageDialog.WARNING, new String[] { Messages.DeleteHandler_DELETE, Messages.DeleteHandler_SKIP }, 0);
|
|
109 | 110 |
int result_dialog= dialog.open(); |
110 | 111 |
if (result_dialog != Status.OK){ |
111 | 112 |
return null; |
... | ... | |
123 | 124 |
|
124 | 125 |
} |
125 | 126 |
else{ |
126 |
MessagingUtils.error(getClass(), "Selection is not valid for this delete handler", null);
|
|
127 |
MessagingUtils.error(getClass(), Messages.DeleteHandler_INVALID_SELECTION, null);
|
|
127 | 128 |
} |
128 | 129 |
} |
129 | 130 |
|
... | ... | |
133 | 134 |
} |
134 | 135 |
|
135 | 136 |
} catch (NotDefinedException e) { |
136 |
MessagingUtils.warn(getClass(), "Command name not set."); |
|
137 |
MessagingUtils.warn(getClass(), "Command name not set."); //$NON-NLS-1$
|
|
137 | 138 |
} |
138 | 139 |
|
139 | 140 |
|
Also available in: Unified diff
ref #4611 complete i18n for taxeditor.editor plugin