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
.cdm
.model
.common
.IIdentifiableEntity
;
21 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
28 public abstract class DataImportEditorInput
<T
extends IIdentifiableEntity
> implements IEditorInput
{
30 private static Logger logger
= Logger
.getLogger(DataImportEditorInput
.class);
32 private Collection
<T
> results
;
34 private final ConversationHolder conversationHolder
;
39 public DataImportEditorInput() {
40 this.conversationHolder
= CdmStore
.createConversation();
45 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
48 public Object
getAdapter(Class adapter
) {
49 // TODO Auto-generated method stub
54 * @see org.eclipse.ui.IEditorInput#exists()
57 public boolean exists() {
62 * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
65 public ImageDescriptor
getImageDescriptor() {
66 // TODO Auto-generated method stub
71 * @see org.eclipse.ui.IEditorInput#getPersistable()
74 public IPersistableElement
getPersistable() {
81 public Collection
<T
> getResults() {
86 * @param results the results to set
88 public void setResults(Collection
<T
> results
) {
89 this.results
= results
;
93 * @return the conversationHolder
95 public ConversationHolder
getConversationHolder() {
96 return conversationHolder
;
100 public abstract int hashCode();
103 public abstract boolean equals(Object obj
);