Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorStateManager.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart; |
26 | 26 |
import eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart; |
27 | 27 |
import eu.etaxonomy.taxeditor.model.ContextListenerAdapter; |
28 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
28 | 29 |
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart; |
29 | 30 |
|
30 | 31 |
/** |
... | ... | |
140 | 141 |
try { |
141 | 142 |
EditorUtil.open(input); |
142 | 143 |
} catch (PartInitException e) { |
143 |
EditorUtil.error(getClass(), "Error opening an editor window", e);
|
|
144 |
MessagingUtils.error(getClass(), "Error opening an editor window", e);
|
|
144 | 145 |
} |
145 | 146 |
} |
146 | 147 |
subProgressMonitor.worked(1); |
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