Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/operation/CreateDefinedTermOperation.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.common.TermBase; |
21 | 21 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
22 | 22 |
import eu.etaxonomy.taxeditor.editor.definedterm.input.TermEditorInput; |
23 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation; |
24 | 25 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
25 | 26 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
... | ... | |
64 | 65 |
new Status(IStatus.CANCEL, |
65 | 66 |
StoreUtil.getPluginId(), |
66 | 67 |
"Creation of term corresponding to type '" + definedTermInput.getTermType().getMessage() + "' is not yet supported"); |
67 |
StoreUtil.warningDialog("Cannot create term", newTerm, status);
|
|
68 |
MessagingUtils.warningDialog("Cannot create term", newTerm, status);
|
|
68 | 69 |
return status; |
69 | 70 |
} |
70 | 71 |
|
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