3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.editor
.view
.derivate
;
12 import java
.util
.Collection
;
13 import java
.util
.UUID
;
15 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
16 import org
.eclipse
.ui
.IEditorInput
;
17 import org
.eclipse
.ui
.IPersistableElement
;
20 * Editor input for the {@link DerivateView}
26 public class DerivateViewEditorInput
implements IEditorInput
{
28 Collection
<UUID
> derivativeUuids
;
30 public DerivateViewEditorInput() {
33 public DerivateViewEditorInput(Collection
<UUID
> derivativeUuids
) {
34 this.derivativeUuids
= derivativeUuids
;
37 public Collection
<UUID
> getDerivativeUuids() {
38 return derivativeUuids
;
42 public Object
getAdapter(Class adapter
) {
47 public boolean exists() {
52 public ImageDescriptor
getImageDescriptor() {
57 public String
getName() {
58 return getEditorName();
62 public IPersistableElement
getPersistable() {
67 public String
getToolTipText() {
68 return getEditorName();
71 private String
getEditorName() {
72 return "Derivative Editor";