editor now updatable via updateSite
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / propertysheet / type / TypeDesignationPropertySource.java
index f84d5f14c1345572443e422520c95a428364c498..df242c36a2bddc8e93a834f3bb1762db3145ce1f 100644 (file)
@@ -14,7 +14,6 @@ import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;\r
 import java.util.Vector;\r
 \r
-import org.apache.log4j.Logger;\r
 import org.eclipse.ui.views.properties.IPropertyDescriptor;\r
 import org.eclipse.ui.views.properties.IPropertySource;\r
 import org.eclipse.ui.views.properties.PropertyDescriptor;\r
@@ -34,10 +33,8 @@ import eu.etaxonomy.taxeditor.propertysheet.reference.ReferencePropertySource;
  * @version 1.0\r
  */\r
 public class TypeDesignationPropertySource implements IPropertySource {\r
-       private static final Logger logger = Logger\r
-                       .getLogger(TypeDesignationPropertySource.class);\r
 \r
-       private TypeDesignationBase typeDesignation;\r
+       private TypeDesignationBase<?> typeDesignation;\r
 \r
     /**\r
      * Property unique keys\r
@@ -53,7 +50,7 @@ public class TypeDesignationPropertySource implements IPropertySource {
        \r
        protected Vector<PropertyDescriptor> descriptors = new Vector<PropertyDescriptor>();\r
        \r
-       TypeDesignationPropertySource(TypeDesignationBase typeDesignation) {\r
+       TypeDesignationPropertySource(TypeDesignationBase<?> typeDesignation) {\r
                this.typeDesignation = typeDesignation;\r
                \r
                addDescriptor(P_ID_CITATION);\r
@@ -94,7 +91,7 @@ public class TypeDesignationPropertySource implements IPropertySource {
                \r
                if (id.equals(P_ID_CITATION)) {\r
                \r
-                       ReferenceBase reference = typeDesignation.getCitation();\r
+                       ReferenceBase<?> reference = typeDesignation.getCitation();\r
                        if (reference == null) {\r
                                reference = Generic.NewInstance();\r
                        }\r
@@ -102,7 +99,7 @@ public class TypeDesignationPropertySource implements IPropertySource {
                        referencePropertySource.addPropertyChangeListener(new PropertyChangeListener() {\r
                                public void propertyChange(PropertyChangeEvent evt) {\r
                                        if (evt.getNewValue() instanceof ReferenceBase) {       \r
-                                               typeDesignation.setCitation((ReferenceBase) evt.getNewValue());\r
+                                               typeDesignation.setCitation((ReferenceBase<?>) evt.getNewValue());\r
                                        }\r
                                }\r
                        });\r