Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
96 | 96 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
97 | 97 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
98 | 98 |
import eu.etaxonomy.cdm.strategy.parser.ParserProblem; |
99 |
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
|
99 |
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
|
100 | 100 |
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement; |
101 | 101 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
102 | 102 |
import eu.etaxonomy.taxeditor.ui.element.MinMaxTextSection.UnitType; |
... | ... | |
442 | 442 |
if (selectionProvider != null) { |
443 | 443 |
selectionProvider.removeSelectionChangedListener(selectionArbitrator); |
444 | 444 |
} else { |
445 |
AbstractUtility.error(this.getClass(),
|
|
445 |
MessagingUtils.error(this.getClass(),
|
|
446 | 446 |
"Tried to destroy a selection listener from this factories listeners but was null", null); |
447 | 447 |
} |
448 | 448 |
} |
... | ... | |
1337 | 1337 |
*/ |
1338 | 1338 |
public void removeSelectionListener(SelectionListener listener) { |
1339 | 1339 |
if (listener == null) { |
1340 |
AbstractUtility.error(this.getClass(),
|
|
1340 |
MessagingUtils.error(this.getClass(),
|
|
1341 | 1341 |
"Tried to remove a selection listener from this factories listeners but was null", null); |
1342 | 1342 |
} else { |
1343 | 1343 |
selectionListenerList.remove(listener); |
... | ... | |
2585 | 2585 |
} |
2586 | 2586 |
|
2587 | 2587 |
if (element == null) { |
2588 |
AbstractUtility.errorDialog("No element for entity", this,
|
|
2588 |
MessagingUtils.messageDialog("No element for entity", this,
|
|
2589 | 2589 |
"Could not generate element for entity. Looks like the case is not handled already. Check implementation. Entity: " |
2590 | 2590 |
+ entity, null); |
2591 | 2591 |
} |
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