2 * Copyright (C) 2014 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.editor
.view
.derivate
;
11 import org
.eclipse
.jface
.viewers
.ISelection
;
14 * Wrapper for {@link ISelection} which additionally holds a
15 * reference to the {@link DerivateView}
20 public class DerivateViewSelection
implements ISelection
{
22 private final ISelection selection
;
23 private final DerivateView derivateView
;
29 public DerivateViewSelection(ISelection selection
, DerivateView derivateView
) {
31 this.selection
= selection
;
32 this.derivateView
= derivateView
;
36 * @return the selection
38 public ISelection
getSelection() {
43 * @return the derivateView
45 public DerivateView
getDerivateView() {
50 * @see org.eclipse.jface.viewers.ISelection#isEmpty()
53 public boolean isEmpty() {
54 return selection
.isEmpty();