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 org.eclipse.core.runtime.CoreException;
|
13
|
import org.eclipse.ui.IEditorInput;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
16
|
import eu.etaxonomy.taxeditor.annotatedlineeditor.AnnotatedLineEditor;
|
17
|
|
18
|
/**
|
19
|
* @author pplitzner
|
20
|
* @date 20.09.2013
|
21
|
*
|
22
|
*/
|
23
|
public class DataImportEditor extends AnnotatedLineEditor {
|
24
|
|
25
|
/** Constant <code>ID="bulkeditor.input.nameRelationship"</code> */
|
26
|
public static final String ID = "eu.etaxonomy.taxeditor.dataimport.DataImportEditor";
|
27
|
|
28
|
/**
|
29
|
* Constructs a new DataImportEditor with a new {@link ConversationHolder}
|
30
|
*/
|
31
|
public DataImportEditor() {
|
32
|
super(null);
|
33
|
}
|
34
|
|
35
|
/* (non-Javadoc)
|
36
|
* @see org.eclipse.ui.editors.text.TextEditor#initializeEditor()
|
37
|
*/
|
38
|
/** {@inheritDoc} */
|
39
|
@Override
|
40
|
protected void initializeEditor() {
|
41
|
super.initializeEditor();
|
42
|
setLineDisplayStrategy(new DataImportEditorLineDisplayStrategy());
|
43
|
}
|
44
|
|
45
|
/* (non-Javadoc)
|
46
|
* @see eu.etaxonomy.taxeditor.annotatedlineeditor.AnnotatedLineEditor#doSetInput(org.eclipse.ui.IEditorInput)
|
47
|
*/
|
48
|
@Override
|
49
|
protected void doSetInput(IEditorInput input) throws CoreException {
|
50
|
super.doSetInput(input);
|
51
|
setPartName(input.getName());
|
52
|
setTitleToolTip(input.getName());
|
53
|
}
|
54
|
|
55
|
}
|