3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.editor
.view
.dataimport
;
12 import java
.util
.Collection
;
14 import org
.apache
.log4j
.Logger
;
15 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
16 import org
.eclipse
.ui
.IEditorInput
;
17 import org
.eclipse
.ui
.IPersistableElement
;
19 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
20 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
27 public abstract class DataImportEditorInput
<T
> implements IEditorInput
{
29 protected static Logger logger
= Logger
.getLogger(DataImportEditorInput
.class);
31 private Collection
<T
> results
;
33 private final ConversationHolder conversationHolder
;
38 public DataImportEditorInput() {
39 this.conversationHolder
= CdmStore
.createConversation();
44 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
47 public Object
getAdapter(Class adapter
) {
48 // TODO Auto-generated method stub
53 * @see org.eclipse.ui.IEditorInput#exists()
56 public boolean exists() {
61 * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
64 public ImageDescriptor
getImageDescriptor() {
65 // TODO Auto-generated method stub
70 * @see org.eclipse.ui.IEditorInput#getPersistable()
73 public IPersistableElement
getPersistable() {
80 public Collection
<T
> getResults() {
85 * @param results the results to set
87 public void setResults(Collection
<T
> results
) {
88 this.results
= results
;
92 * @return the conversationHolder
94 public ConversationHolder
getConversationHolder() {
95 return conversationHolder
;
99 public abstract int hashCode();
102 public abstract boolean equals(Object obj
);
105 public abstract void query();