1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2013 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
package eu.etaxonomy.taxeditor.dataimport;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
import org.eclipse.jface.resource.ImageDescriptor;
|
15
|
import org.eclipse.ui.IEditorInput;
|
16
|
import org.eclipse.ui.IPersistableElement;
|
17
|
|
18
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
|
19
|
|
20
|
/**
|
21
|
* @author pplitzner
|
22
|
* @date 20.09.2013
|
23
|
*
|
24
|
*/
|
25
|
public class SpecimenEditorInput implements IEditorInput {
|
26
|
|
27
|
private List<SpecimenOrObservationBase> results;
|
28
|
|
29
|
/**
|
30
|
* @param results
|
31
|
*/
|
32
|
public SpecimenEditorInput(List<SpecimenOrObservationBase> results) {
|
33
|
this.results = results;
|
34
|
}
|
35
|
|
36
|
/* (non-Javadoc)
|
37
|
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
38
|
*/
|
39
|
@Override
|
40
|
public Object getAdapter(Class adapter) {
|
41
|
// TODO Auto-generated method stub
|
42
|
return null;
|
43
|
}
|
44
|
|
45
|
/* (non-Javadoc)
|
46
|
* @see org.eclipse.ui.IEditorInput#exists()
|
47
|
*/
|
48
|
@Override
|
49
|
public boolean exists() {
|
50
|
// TODO Auto-generated method stub
|
51
|
return false;
|
52
|
}
|
53
|
|
54
|
/* (non-Javadoc)
|
55
|
* @see org.eclipse.ui.IEditorInput#getImageDescriptor()
|
56
|
*/
|
57
|
@Override
|
58
|
public ImageDescriptor getImageDescriptor() {
|
59
|
// TODO Auto-generated method stub
|
60
|
return null;
|
61
|
}
|
62
|
|
63
|
/* (non-Javadoc)
|
64
|
* @see org.eclipse.ui.IEditorInput#getName()
|
65
|
*/
|
66
|
@Override
|
67
|
public String getName() {
|
68
|
return "inputName";
|
69
|
}
|
70
|
|
71
|
/* (non-Javadoc)
|
72
|
* @see org.eclipse.ui.IEditorInput#getPersistable()
|
73
|
*/
|
74
|
@Override
|
75
|
public IPersistableElement getPersistable() {
|
76
|
// TODO Auto-generated method stub
|
77
|
return null;
|
78
|
}
|
79
|
|
80
|
/* (non-Javadoc)
|
81
|
* @see org.eclipse.ui.IEditorInput#getToolTipText()
|
82
|
*/
|
83
|
@Override
|
84
|
public String getToolTipText() {
|
85
|
return "tooltip";
|
86
|
}
|
87
|
|
88
|
/**
|
89
|
* @return the results
|
90
|
*/
|
91
|
public List<SpecimenOrObservationBase> getResults() {
|
92
|
return results;
|
93
|
}
|
94
|
|
95
|
}
|