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 private Collection
<UUID
> derivativeUuids
;
29 private UUID taxonUuid
;
31 public DerivateViewEditorInput() {
34 public DerivateViewEditorInput(Collection
<UUID
> derivativeUuids
, UUID taxonUuid
) {
35 this.derivativeUuids
= derivativeUuids
;
36 this.taxonUuid
= taxonUuid
;
39 public DerivateViewEditorInput(Collection
<UUID
> derivativeUuids
) {
40 this(derivativeUuids
, null);
43 public Collection
<UUID
> getDerivativeUuids() {
44 return derivativeUuids
;
47 public UUID
getTaxonUuid() {
52 public Object
getAdapter(Class adapter
) {
57 public boolean exists() {
62 public ImageDescriptor
getImageDescriptor() {
67 public String
getName() {
68 return getEditorName();
72 public IPersistableElement
getPersistable() {
77 public String
getToolTipText() {
78 return getEditorName();
81 private String
getEditorName() {
82 return "Derivative Editor";