Project

General

Profile

« Previous | Next » 

Revision 41e2f693

Added by Cherian Mathew over 9 years ago

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

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/MoveTaxonOperation.java
24 24
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
25 25
import eu.etaxonomy.cdm.model.taxon.IllegalAncestryException;
26 26
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
27
import eu.etaxonomy.taxeditor.model.MessagingUtils;
27 28
import eu.etaxonomy.taxeditor.operation.AbstractPersistentPostOperation;
28 29
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
29
import eu.etaxonomy.taxeditor.store.StoreUtil;
30 30

  
31 31
/**
32 32
 * Change the taxonomic parent of a given taxon.
......
91 91
				monitor.worked(2);
92 92
			}
93 93
		} catch(IllegalAncestryException e) {
94
			StoreUtil.warningDialog("Illegal ancestry", this, e.getMessage());
94
			MessagingUtils.warningDialog("Illegal ancestry", this, e.getMessage());
95 95
		}
96 96
		monitor.worked(40);
97 97

  
......
115 115
	@Override
116 116
	public IStatus undo(IProgressMonitor monitor, IAdaptable info)
117 117
			throws ExecutionException {
118
		StoreUtil.warn(this.getClass(), "Not implemented yet.");
118
		MessagingUtils.warn(this.getClass(), "Not implemented yet.");
119 119

  
120 120
		// iterate over oldParentTreeNodes, delete each TaxonNode from its actual parent and add to its former parent
121 121

  

Also available in: Unified diff