Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/NonViralNameMatchingPreference.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
16 | 16 |
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy; |
17 | 17 |
import eu.etaxonomy.cdm.strategy.match.MatchException; |
18 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
18 | 19 |
import eu.etaxonomy.taxeditor.parser.MatchStrategyConfigurator; |
19 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
20 | 20 |
|
21 | 21 |
/** |
22 | 22 |
* <p>NonViralNameMatchingPreference class.</p> |
... | ... | |
37 | 37 |
try { |
38 | 38 |
matchStrategy = MatchStrategyConfigurator.NonViralNameMatchStrategy(); |
39 | 39 |
} catch (MatchException e) { |
40 |
StoreUtil.error(this.getClass(), e);
|
|
40 |
MessagingUtils.error(this.getClass(), e);
|
|
41 | 41 |
throw new RuntimeException(e); |
42 | 42 |
} |
43 | 43 |
} |
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