Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/EditorManager.java | ||
---|---|---|
10 | 10 |
import org.eclipse.ui.IEditorInput; |
11 | 11 |
|
12 | 12 |
import eu.etaxonomy.taxeditor.model.ICdmEditorHandle; |
13 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
13 | 14 |
|
14 | 15 |
/** |
15 | 16 |
* |
... | ... | |
25 | 26 |
ICdmEditorHandle editor = editors.get(inputType); |
26 | 27 |
|
27 | 28 |
if(editor == null){ |
28 |
StoreUtil.warningDialog("No editor", getClass(), "No editor was registered for the given type.");
|
|
29 |
MessagingUtils.warningDialog("No editor", getClass(), "No editor was registered for the given type.");
|
|
29 | 30 |
}else{ |
30 | 31 |
editor.open(uuid); |
31 | 32 |
} |
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