Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeSynonymToAcceptedTaxonHandler.java | ||
---|---|---|
35 | 35 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
36 | 36 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
37 | 37 |
import eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToAcceptedTaxonOperation; |
38 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
38 | 39 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
39 | 40 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
40 | 41 |
import eu.etaxonomy.taxeditor.ui.dialog.selection.TaxonNodeSelectionDialog; |
... | ... | |
133 | 134 |
// TODO Auto-generated catch block |
134 | 135 |
e.printStackTrace(); |
135 | 136 |
} catch (Exception e) { |
136 |
EditorUtil.warningDialog("Could not create Taxon", this, e.getMessage());
|
|
137 |
MessagingUtils.warningDialog("Could not create Taxon", this, e.getMessage());
|
|
137 | 138 |
} |
138 | 139 |
} |
139 | 140 |
return true; |
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