// $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.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
import eu.etaxonomy.taxeditor.ui.element.UriWithLabelElement;\r
@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
*/\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
- MessagingUtils.messageDialog("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
- MessagingUtils.messageDialog("Not a URI", getClass(), "You have to provide a valid URI");\r
- }\r
+ getEntity().setTermSourceUri(uri_uriTermSource.getUri());\r
}\r
}\r
\r