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/CreateDescriptionElementHandler.java
27 27
import eu.etaxonomy.taxeditor.editor.EditorUtil;
28 28
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.CreateDescriptionElementOperation;
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

  
......
76 77
                operation = operationCreationInstance(event.getCommand().getName(), event, description, postOperationEnabled);
77 78
                AbstractUtility.executeOperation(operation);
78 79
            } catch (NotDefinedException e) {
79
                AbstractUtility.warn(getClass(), "Command name not set");
80
            	MessagingUtils.warn(getClass(), "Command name not set");
80 81
            }
81 82
        } else {
82
            AbstractUtility.error(getClass(), new IllegalArgumentException("Could not determine the taxon description"));
83
            MessagingUtils.error(getClass(), new IllegalArgumentException("Could not determine the taxon description"));
83 84
            return null;
84 85
        }
85 86
        return null;

Also available in: Unified diff