Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeConceptToSynonymOperation.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
27 | 27 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
28 | 28 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
29 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
29 | 30 |
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation; |
30 | 31 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
31 | 32 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
32 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
33 | 33 |
|
34 | 34 |
/** |
35 | 35 |
* <p>ChangeConceptToSynonymOperation class.</p> |
... | ... | |
69 | 69 |
Set<TaxonRelationship> taxonRelationships = taxon.getTaxonRelations(concept); |
70 | 70 |
|
71 | 71 |
if(taxonRelationships.size() > 1){ |
72 |
StoreUtil.warningDialog("Multiple relations between taxa", this, "There are multiple relations between the " +
|
|
72 |
MessagingUtils.warningDialog("Multiple relations between taxa", this, "There are multiple relations between the " +
|
|
73 | 73 |
"accepted and the related taxon. This case is not handled by the software yet"); |
74 | 74 |
return; |
75 | 75 |
} |
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