Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/TermComboElement.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
24 | 24 |
import eu.etaxonomy.cdm.model.common.TermType; |
25 | 25 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
26 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
26 | 27 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
27 | 28 |
import eu.etaxonomy.taxeditor.preference.Resources; |
28 | 29 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
... | ... | |
203 | 204 |
if (label == null) { |
204 | 205 |
if (term.getTitleCache() != null) { |
205 | 206 |
label = term.getTitleCache(); |
206 |
StoreUtil.warn(getClass(),
|
|
207 |
MessagingUtils.warn(getClass(),
|
|
207 | 208 |
"Term does not have a default language representation: " + label |
208 | 209 |
+ ", " + term.getUuid()); |
209 | 210 |
} else { |
210 | 211 |
label = "Unknown"; |
211 |
StoreUtil.warn(getClass(),
|
|
212 |
MessagingUtils.warn(getClass(),
|
|
212 | 213 |
"Representation Label and TitleCache empty for term: " |
213 | 214 |
+ term + ", " + term.getUuid()); |
214 | 215 |
} |
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