04554639105fa84d3979da1c6275560c98794a5b
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / input / NameEditorInput.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 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
11 package eu.etaxonomy.taxeditor.bulkeditor.input;
12
13 import org.apache.log4j.Logger;
14
15 /**
16 * @author p.ciardelli
17 * @created 20.08.2009
18 * @version 1.0
19 */
20 public class NameEditorInput extends BulkEditorInput {
21 private static final Logger logger = Logger
22 .getLogger(NameEditorInput.class);
23
24 private static NameEditorInput instance;
25
26 /**
27 * @param sourceBean
28 */
29 public NameEditorInput() {
30 super(new Object());
31 }
32
33 public static final String ID = "bulkeditor.input.name";
34
35 public static BulkEditorInput getInstance() {
36 if (instance == null) {
37 instance = new NameEditorInput();
38 }
39 return instance;
40 }
41
42 /* (non-Javadoc)
43 * @see org.eclipse.ui.IEditorInput#getName()
44 */
45 public String getName() {
46 return "Bulk Editor - Names";
47 }
48
49 /* (non-Javadoc)
50 * @see org.eclipse.ui.IEditorInput#getToolTipText()
51 */
52 public String getToolTipText() {
53 return getName();
54 }
55
56 /**
57 * @return
58 */
59 public static Object getID() {
60 return ID;
61 }
62
63 /* (non-Javadoc)
64 * @see eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInput#isMergingEnabled()
65 */
66 @Override
67 public boolean isMergingEnabled() {
68 return false;
69 }
70 }