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