added a readme file
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / forms / selection / ReferenceSelectionElement.java
index a9bf03cf4eeb3dd9adb138b77edb46e0439ecd7d..4ca1cbd5405f85ff3d2758df15bc3e13a6b73b16 100644 (file)
@@ -6,7 +6,7 @@ package eu.etaxonomy.taxeditor.forms.selection;
 import org.eclipse.swt.events.SelectionEvent;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
-import eu.etaxonomy.cdm.model.reference.ReferenceBase;
+import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.taxeditor.dialogs.filteredSelection.FilteredReferenceSelectionDialog;
 import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
 import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
@@ -18,7 +18,7 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  * @author n.hofmann
  * @version $Id: $
  */
-public class ReferenceSelectionElement extends AbstractSelectionElement<ReferenceBase>{
+public class ReferenceSelectionElement extends AbstractSelectionElement<Reference>{
 
        /**
         * <p>Constructor for ReferenceSelectionElement.</p>
@@ -31,7 +31,7 @@ public class ReferenceSelectionElement extends AbstractSelectionElement<Referenc
         * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
         */
        public ReferenceSelectionElement(CdmFormFactory toolkit, ConversationHolder conversation, ICdmFormElement parentElement, String labelString,
-                       ReferenceBase selection, int style) {
+                       Reference selection, int style) {
                super(toolkit, conversation, parentElement, labelString, selection, true, true, true, style);
        }
 
@@ -40,9 +40,9 @@ public class ReferenceSelectionElement extends AbstractSelectionElement<Referenc
         */
        /** {@inheritDoc} */
        public void widgetSelected(SelectionEvent e) {
-               ReferenceBase newSelection = FilteredReferenceSelectionDialog.select(getShell(), getConversationHolder(), entity);
+               Reference newSelection = FilteredReferenceSelectionDialog.select(getShell(), getConversationHolder(), entity);
                
-               ReferenceBase freshlyLoadedSelection = null;
+               Reference freshlyLoadedSelection = null;
                if(newSelection != null)
                        freshlyLoadedSelection = CdmStore.getReferenceService().load(newSelection.getUuid());