Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/handler/AddImageGalleryHandler.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
17 | 17 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
18 | 18 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateTaxonDescriptionOperation; |
19 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
19 | 20 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
20 | 21 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
21 | 22 |
|
... | ... | |
48 | 49 |
EditorUtil.getUndoContext(), taxon, postOperationEnabled, true); |
49 | 50 |
EditorUtil.executeOperation(operation); |
50 | 51 |
} catch (NotDefinedException e) { |
51 |
EditorUtil.warn(getClass(), "Command name not set.");
|
|
52 |
MessagingUtils.warn(getClass(), "Command name not set.");
|
|
52 | 53 |
} |
53 | 54 |
} |
54 | 55 |
return null; |
Also available in: Unified diff
Moved all logging and dialog functionality to the new class MessagingUtils.
Refactoring code to adapt to above change.
Added new custom error dialog - CdmErrorDialog
Added runtime exception handling to the ApplicationWorkbenchAdvisor by adding a custom status handler