Fix error message
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / derivate / DerivateViewEditorInput.java
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.editor.view.derivate;
11
12 import org.eclipse.jface.resource.ImageDescriptor;
13 import org.eclipse.ui.IEditorInput;
14 import org.eclipse.ui.IPersistableElement;
15
16 /**
17 * Editor input for the {@link DerivateView}
18 *
19 * @author pplitzner
20 * @date Nov 11, 2015
21 *
22 */
23 public class DerivateViewEditorInput implements IEditorInput {
24
25 public DerivateViewEditorInput() {
26 }
27
28 @Override
29 public Object getAdapter(Class adapter) {
30 return null;
31 }
32
33 @Override
34 public boolean exists() {
35 return false;
36 }
37
38 @Override
39 public ImageDescriptor getImageDescriptor() {
40 return null;
41 }
42
43 @Override
44 public String getName() {
45 return getEditorName();
46 }
47
48 @Override
49 public IPersistableElement getPersistable() {
50 return null;
51 }
52
53 @Override
54 public String getToolTipText() {
55 return getEditorName();
56 }
57
58 private String getEditorName() {
59 return "Derivative Editor";
60 }
61
62 }