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.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/operation/MoveDefinedTermOperation.java
21 21
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
22 22
import eu.etaxonomy.cdm.model.common.TermBase;
23 23
import eu.etaxonomy.cdm.model.common.TermVocabulary;
24
import eu.etaxonomy.taxeditor.model.MessagingUtils;
24 25
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation;
25 26
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
26 27
import eu.etaxonomy.taxeditor.store.StoreUtil;
......
64 65
			// do nothing when moving it on itself
65 66
			if(targetTermOrVocabulary.equals(term)){
66 67
				Status status = new Status(IStatus.CANCEL, StoreUtil.getPluginId(), "Term can not be added to itself");
67
				StoreUtil.informationDialog("", status);
68
				MessagingUtils.informationDialog("", status);
68 69
				return status;
69 70
			}
70 71
			
......
74 75
				// do nothing when term is top level and gets added to the same vocabulary
75 76
				if(term.getPartOf() == null && termVocabulary.equals(term.getVocabulary())){
76 77
					Status status = new Status(IStatus.CANCEL, StoreUtil.getPluginId(), "Term is already in this vocabulary");
77
					StoreUtil.informationDialog("", status);
78
					MessagingUtils.informationDialog("", status);
78 79
					return status;
79 80
				}
80 81
				

Also available in: Unified diff