Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/handler/MoveImageDownInListHandler.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
28 | 28 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
29 | 29 |
import eu.etaxonomy.taxeditor.editor.view.media.operation.MoveMediaInListOperation; |
30 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
30 | 31 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
31 | 32 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
32 | 33 |
|
... | ... | |
75 | 76 |
EditorUtil.getUndoContext(), taxon, description, media, MoveMediaInListOperation.DOWN, postOperationEnabled); |
76 | 77 |
EditorUtil.executeOperation(operation); |
77 | 78 |
} catch (NotDefinedException e) { |
78 |
EditorUtil.warn(getClass(), "Command name not set.");
|
|
79 |
MessagingUtils.warn(getClass(), "Command name not set.");
|
|
79 | 80 |
} |
80 | 81 |
} |
81 | 82 |
} |
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