Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/matching/AbstractMatchingPreferences.java | ||
---|---|---|
32 | 32 |
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy; |
33 | 33 |
import eu.etaxonomy.cdm.strategy.match.MatchException; |
34 | 34 |
import eu.etaxonomy.cdm.strategy.match.MatchMode; |
35 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
35 | 36 |
import eu.etaxonomy.taxeditor.parser.MatchStrategyConfigurator; |
36 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
37 | 37 |
|
38 | 38 |
/** |
39 | 39 |
* <p>Abstract AbstractMatchingPreferences class.</p> |
... | ... | |
143 | 143 |
try { |
144 | 144 |
matchStrategy.setMatchMode(fieldName, matchMode); |
145 | 145 |
} catch (MatchException e) { |
146 |
StoreUtil.error(this.getClass(), e);
|
|
146 |
MessagingUtils.error(this.getClass(), e);
|
|
147 | 147 |
throw new RuntimeException(e); |
148 | 148 |
} |
149 | 149 |
} |
... | ... | |
227 | 227 |
} |
228 | 228 |
|
229 | 229 |
} catch (MatchException e) { |
230 |
StoreUtil.error(this.getClass(), e);
|
|
230 |
MessagingUtils.error(this.getClass(), e);
|
|
231 | 231 |
throw new RuntimeException(e); |
232 | 232 |
} |
233 | 233 |
super.performDefaults(); |
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