Project

General

Profile

Download (1.54 KB) Statistics
| Branch: | Tag: | Revision:
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 java.util.Collection;
13
import java.util.UUID;
14

    
15
import org.eclipse.jface.resource.ImageDescriptor;
16
import org.eclipse.ui.IEditorInput;
17
import org.eclipse.ui.IPersistableElement;
18

    
19
/**
20
 * Editor input for the {@link DerivateView}
21
 *
22
 * @author pplitzner
23
 * @date Nov 11, 2015
24
 *
25
 */
26
public class DerivateViewEditorInput implements IEditorInput {
27

    
28
    Collection<UUID> derivativeUuids;
29

    
30
    public DerivateViewEditorInput() {
31
    }
32

    
33
    public DerivateViewEditorInput(Collection<UUID> derivativeUuids) {
34
        this.derivativeUuids = derivativeUuids;
35
    }
36

    
37
    public Collection<UUID> getDerivativeUuids() {
38
        return derivativeUuids;
39
    }
40

    
41
    @Override
42
    public Object getAdapter(Class adapter) {
43
        return null;
44
    }
45

    
46
    @Override
47
    public boolean exists() {
48
        return false;
49
    }
50

    
51
    @Override
52
    public ImageDescriptor getImageDescriptor() {
53
        return null;
54
    }
55

    
56
    @Override
57
    public String getName() {
58
        return getEditorName();
59
    }
60

    
61
    @Override
62
    public IPersistableElement getPersistable() {
63
        return null;
64
    }
65

    
66
    @Override
67
    public String getToolTipText() {
68
        return getEditorName();
69
    }
70

    
71
    private String getEditorName() {
72
        return "Derivative Editor";
73
    }
74

    
75
}
(4-4/6)