Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/operation/CreateTaxonNode.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode; |
24 | 24 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
25 | 25 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
26 |
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
|
|
26 |
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
|
27 | 27 |
import eu.etaxonomy.taxeditor.operation.AbstractPersistentPostOperation; |
28 | 28 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
29 | 29 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
30 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
31 | 30 |
|
32 | 31 |
/** |
33 | 32 |
* <p>CreateTaxonNodeOperation class.</p> |
... | ... | |
100 | 99 |
|
101 | 100 |
return postExecute(childTaxonNode); |
102 | 101 |
}catch(Exception e){ |
103 |
NavigationUtil.errorDialog("Could not create taxon node", getClass(), e.getLocalizedMessage(), e);
|
|
102 |
MessagingUtils.messageDialog("Could not create taxon node", getClass(), e.getLocalizedMessage(), e);
|
|
104 | 103 |
return Status.CANCEL_STATUS; |
105 | 104 |
} |
106 | 105 |
} |
... | ... | |
123 | 122 |
public IStatus undo(IProgressMonitor monitor, IAdaptable info) |
124 | 123 |
throws ExecutionException { |
125 | 124 |
|
126 |
StoreUtil.warn(this.getClass(), "Not yet implemented.");
|
|
125 |
MessagingUtils.warn(this.getClass(), "Not yet implemented.");
|
|
127 | 126 |
return null; |
128 | 127 |
} |
129 | 128 |
} |
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