Revision 41e2f693
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/TermVocabularyDetailElement.java | ||
---|---|---|
12 | 12 |
import java.net.URISyntaxException; |
13 | 13 |
|
14 | 14 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
15 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
|
15 | 16 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
16 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
17 | 18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
... | ... | |
57 | 58 |
try { |
58 | 59 |
getEntity().setUri(uri_uri.getUri()); |
59 | 60 |
} catch (URISyntaxException e) { |
60 |
StoreUtil.errorDialog("Not a URI", getClass(), "You have to provide a valid URI");
|
|
61 |
MessagingUtils.messageDialog("Not a URI", getClass(), "You have to provide a valid URI");
|
|
61 | 62 |
} |
62 | 63 |
} else if (eventSource == uri_uriTermSource) { |
63 | 64 |
try { |
64 | 65 |
getEntity().setTermSourceUri(uri_uriTermSource.getUri()); |
65 | 66 |
} catch (URISyntaxException e) { |
66 |
StoreUtil.errorDialog("Not a URI", getClass(), "You have to provide a valid URI");
|
|
67 |
MessagingUtils.messageDialog("Not a URI", getClass(), "You have to provide a valid URI");
|
|
67 | 68 |
} |
68 | 69 |
} |
69 | 70 |
} |
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