Merge branch 'develop' into LibrAlign
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / selection / TaxonNodeSelectionElement.java
index 8d8d15dfa3e90b20e72a455df11599c0c363aaae..0a753619a39653427458f4008e693d3a744d4705 100644 (file)
@@ -1,9 +1,8 @@
-// $Id$
 /**
 * Copyright (C) 2009 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
-* 
+*
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
@@ -15,9 +14,9 @@ import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.common.CdmUtils;
 import eu.etaxonomy.cdm.model.taxon.Classification;
 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
-import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.dialog.selection.TaxonNodeSelectionDialog;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
+import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 
 /**
  * @author n.hoffmann
@@ -27,28 +26,28 @@ import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 public class TaxonNodeSelectionElement extends EntitySelectionElement<TaxonNode> {
 
        private Classification classification;
-       
+
        public TaxonNodeSelectionElement(CdmFormFactory formFactory,
                        ConversationHolder conversation, ICdmFormElement parentElement,
                        String labelString, TaxonNode entity, int mode, int style) {
-               super(formFactory, conversation, parentElement, labelString, entity, mode,
+               super(formFactory, conversation, parentElement, TaxonNode.class, labelString, entity, mode,
                                style);
        }
-       
+
        /**
         * @return
         */
        public Classification getClassification() {
                return classification;
        }
-       
+
        public void setClassification(Classification classification){
                this.classification = classification;
        }
-       
+
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see
         * org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
         * .events.SelectionEvent)
@@ -60,10 +59,10 @@ public class TaxonNodeSelectionElement extends EntitySelectionElement<TaxonNode>
                                getConversationHolder(), "Select parent taxon", null, null, getClassification());
                setSelectionInternal(newSelection);
        }
-       
+
        /*
         * (non-Javadoc)
-        * 
+        *
         * @see
         * eu.etaxonomy.taxeditor.forms.selection.AbstractSelectionElement#getTitle
         * ()