Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/handler/RefreshNodeNumberingHandler.java | ||
---|---|---|
17 | 17 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyListEditor; |
18 | 18 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.CreateNodeOperation; |
19 | 19 |
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.RefreshNodeNumberingOperation; |
20 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
20 | 21 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
21 | 22 |
|
22 | 23 |
public class RefreshNodeNumberingHandler extends AbstractHandler { |
... | ... | |
46 | 47 |
label, undoContext, keyNode, editorPage); |
47 | 48 |
EditorUtil.executeOperation(operation); |
48 | 49 |
} catch (NotDefinedException e) { |
49 |
EditorUtil.warn(getClass(), "Command name not set.");
|
|
50 |
MessagingUtils.warn(getClass(), "Command name not set.");
|
|
50 | 51 |
} |
51 | 52 |
} |
52 | 53 |
} |
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