Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/MultilanguageTextElement.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.model.common.MultilanguageTextHelper; |
31 | 31 |
import eu.etaxonomy.cdm.model.common.TermType; |
32 | 32 |
import eu.etaxonomy.taxeditor.model.DefaultTermComparator; |
33 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
33 | 34 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
34 | 35 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
35 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
36 | 36 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
37 | 37 |
import eu.etaxonomy.taxeditor.ui.translation.TranslationWizard; |
38 | 38 |
|
... | ... | |
66 | 66 |
Map<Language, LanguageString> multilanguageText = getMultilanguageText(); |
67 | 67 |
|
68 | 68 |
if (multilanguageText == null){ |
69 |
StoreUtil.warningDialog("No text to transalte", getClass(), "The text is empty and therefore can not be translated");
|
|
69 |
MessagingUtils.warningDialog("No text to transalte", getClass(), "The text is empty and therefore can not be translated");
|
|
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
TranslationWizard wizard = new TranslationWizard(multilanguageText); |
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