Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/contextMenu/SingleReadSequenceContextMenu.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.molecular.SingleRead; |
21 | 21 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
22 | 22 |
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView; |
23 |
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
|
23 |
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
|
24 | 24 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
25 | 25 |
|
26 | 26 |
/** |
... | ... | |
100 | 100 |
switch (commandType) { |
101 | 101 |
case REMOVE_FROM_SEQUENCE: |
102 | 102 |
if(activeEditor.isDirty()){ |
103 |
AbstractUtility.warningDialog("View has unsaved changes", this, "You need to save before performing this action");
|
|
103 |
MessagingUtils.warningDialog("View has unsaved changes", this, "You need to save before performing this action");
|
|
104 | 104 |
return; |
105 | 105 |
} |
106 | 106 |
if(selectedTreeNode!=null && selectedTreeNode.getParent()!=null && |
... | ... | |
118 | 118 |
break; |
119 | 119 |
case ADD_TO_SEQUENCE: |
120 | 120 |
if(activeEditor.isDirty()){ |
121 |
AbstractUtility.warningDialog("View has unsaved changes", this, "You need to save before performing this action");
|
|
121 |
MessagingUtils.warningDialog("View has unsaved changes", this, "You need to save before performing this action");
|
|
122 | 122 |
return; |
123 | 123 |
} |
124 | 124 |
if(clipBoardTreeNode!=null && clipBoardTreeNode.getValue() instanceof SingleRead |
Also available in: Unified diff
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