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/media/handler/DeleteMediaHandler.java
22 22
import eu.etaxonomy.taxeditor.editor.EditorUtil;
23 23
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
24 24
import eu.etaxonomy.taxeditor.editor.view.media.operation.RemoveImageFromDescriptionElementOperation;
25
import eu.etaxonomy.taxeditor.model.MessagingUtils;
25 26
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
26 27
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
27 28

  
......
70 71
							EditorUtil.getUndoContext(), taxon, image, element, postOperationEnabled);
71 72
					EditorUtil.executeOperation(operation);
72 73
				} catch (NotDefinedException e) {
73
					EditorUtil.warn(getClass(), "Command name not set.");
74
					MessagingUtils.warn(getClass(), "Command name not set.");
74 75
				}
75 76
			}
76 77
		}

Also available in: Unified diff