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.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/handler/CreateDescriptionHandler.java
27 27
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateSpecimenDescriptionOperation;
28 28
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateTaxonDescriptionOperation;
29 29
import eu.etaxonomy.taxeditor.model.AbstractUtility;
30
import eu.etaxonomy.taxeditor.model.MessagingUtils;
30 31
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
31 32
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
32 33

  
......
62 63
			    operation = createTaxonOperation(event.getCommand().getName(), taxon, postOperationEnabled);
63 64
				AbstractUtility.executeOperation(operation);
64 65
			} catch (NotDefinedException e) {
65
				AbstractUtility.warn(getClass(), "Command name not set.");
66
				MessagingUtils.warn(getClass(), "Command name not set.");
66 67
			}
67 68
		}
68 69
		// specimen description
......
73 74
		            operation = new CreateSpecimenDescriptionOperation(event.getCommand().getName(), EditorUtil.getUndoContext(), (SpecimenOrObservationBase<?>) viewerInput, postOperationEnabled);
74 75
		            AbstractUtility.executeOperation(operation);
75 76
		        } catch (NotDefinedException e) {
76
		            AbstractUtility.warn(getClass(), "Command name not set.");
77
		        	MessagingUtils.warn(getClass(), "Command name not set.");
77 78
		        }
78 79
		    }
79 80
		}

Also available in: Unified diff