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
* @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
\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
\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
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