Merge branch 'develop' of wp5.e-taxonomy.eu:/var/git/taxeditor into remoting-4.0
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / vocabulary / TermVocabularyDetailElement.java
index 17ecf9c1236f4491ccd58b9126d8710c0bd33d9e..5f62d2417e571a62672f1a149a741c17bd13c39a 100644 (file)
@@ -1,20 +1,17 @@
 // $Id$\r
 /**\r
 * Copyright (C) 2009 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
 * http://www.e-taxonomy.eu\r
-* \r
+*\r
 * The contents of this file are subject to the Mozilla Public License Version 1.1\r
 * See LICENSE.TXT at the top of this package for the full license terms.\r
 */\r
 package eu.etaxonomy.taxeditor.ui.section.vocabulary;\r
 \r
-import java.net.URISyntaxException;\r
-\r
 import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
-import eu.etaxonomy.taxeditor.store.StoreUtil;\r
-import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;\r
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;\r
+import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;\r
 import eu.etaxonomy.taxeditor.ui.element.UriWithLabelElement;\r
 \r
 /**\r
@@ -40,7 +37,7 @@ public class TermVocabularyDetailElement extends AbstractTermBaseDetailElement<T
        @Override\r
        protected void createControls(ICdmFormElement formElement,\r
                        TermVocabulary entity, int style) {\r
-               \r
+\r
                super.createControls(formElement, entity, style);\r
                uri_uriTermSource = formFactory.createUriWithLabelElement(formElement, "Term Source URI", getEntity().getTermSourceUri(), style);\r
        }\r
@@ -50,21 +47,13 @@ public class TermVocabularyDetailElement extends AbstractTermBaseDetailElement<T
         */\r
        @Override\r
        public void handleEvent(Object eventSource) {\r
-               \r
+\r
                handleRepresentation(eventSource);\r
-               \r
+\r
                if (eventSource == uri_uri) {\r
-                       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
-                       }\r
+                       getEntity().setUri(uri_uri.getUri());\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
-                       }\r
+                       getEntity().setTermSourceUri(uri_uriTermSource.getUri());\r
                }\r
        }\r
 \r