3 * Copyright (C) 2014 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 org
.eclipse
.jface
.viewers
.ISelection
;
15 * Wrapper for {@link ISelection} which additionally holds a
16 * reference to the {@link DerivateView}
21 public class DerivateViewSelection
implements ISelection
{
23 private final ISelection selection
;
24 private final DerivateView derivateView
;
30 public DerivateViewSelection(ISelection selection
, DerivateView derivateView
) {
32 this.selection
= selection
;
33 this.derivateView
= derivateView
;
37 * @return the selection
39 public ISelection
getSelection() {
44 * @return the derivateView
46 public DerivateView
getDerivateView() {
51 * @see org.eclipse.jface.viewers.ISelection#isEmpty()
54 public boolean isEmpty() {
55 return selection
.isEmpty();