Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/handler/OpenDefinedTermEditorHandler.java | ||
---|---|---|
14 | 14 |
import eu.etaxonomy.cdm.model.common.TermType; |
15 | 15 |
import eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermEditor; |
16 | 16 |
import eu.etaxonomy.taxeditor.editor.definedterm.input.TermEditorInput; |
17 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
17 | 18 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
18 | 19 |
|
19 | 20 |
// $Id$ |
... | ... | |
48 | 49 |
String PID = "eu.etaxonomy.taxeditor.application"; |
49 | 50 |
MultiStatus info = new MultiStatus(PID, 1, "You might be missing sufficient permissions to open the Defined Term Editor", null); |
50 | 51 |
info.add(new Status(IStatus.WARNING, PID, 1, e.getMessage(), null)); |
51 |
StoreUtil.errorDialog("Cannot open Defined Term Editor", getClass(), info);
|
|
52 |
StoreUtil.error(getClass(), e);
|
|
52 |
MessagingUtils.errorDialog("Cannot open Defined Term Editor", getClass(), info);
|
|
53 |
MessagingUtils.error(getClass(), e);
|
|
53 | 54 |
} |
54 | 55 |
|
55 | 56 |
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