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;
* @author n.hofmann
* @version $Id: $
*/
-public class ReferenceSelectionElement extends AbstractSelectionElement<ReferenceBase>{
+public class ReferenceSelectionElement extends AbstractSelectionElement<Reference>{
/**
* <p>Constructor for ReferenceSelectionElement.</p>
* @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);
}
*/
/** {@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());