Moved all logging and dialog functionality to the new class MessagingUtils.
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / vocabulary / TermVocabularyDetailElement.java
index de79af502a287e9e5679af6010d2104a0e4c2515..e1aea5b8fb3294b709076f7d5fc86141caafd0b3 100644 (file)
@@ -12,6 +12,7 @@ package eu.etaxonomy.taxeditor.ui.section.vocabulary;
 import java.net.URISyntaxException;\r
 \r
 import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
+import eu.etaxonomy.taxeditor.model.MessagingUtils;\r
 import eu.etaxonomy.taxeditor.store.StoreUtil;\r
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;\r
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;\r
@@ -57,13 +58,13 @@ public class TermVocabularyDetailElement extends AbstractTermBaseDetailElement<T
                        try {\r
                                getEntity().setUri(uri_uri.getUri());\r
                        } catch (URISyntaxException e) {\r
-                               StoreUtil.errorDialog("Not a URI", getClass(), "You have to provide a valid URI");\r
+                               MessagingUtils.messageDialog("Not a URI", getClass(), "You have to provide a valid URI");\r
                        }\r
                } else if (eventSource == uri_uriTermSource) {\r
                        try {\r
                                getEntity().setTermSourceUri(uri_uriTermSource.getUri());\r
                        } catch (URISyntaxException e) {\r
-                               StoreUtil.errorDialog("Not a URI", getClass(), "You have to provide a valid URI");\r
+                               MessagingUtils.messageDialog("Not a URI", getClass(), "You have to provide a valid URI");\r
                        }\r
                }\r
        }\r