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
.ui
.campanula
.derivatesearch
;
12 import org
.eclipse
.swt
.widgets
.Composite
;
13 import org
.eclipse
.ui
.part
.ViewPart
;
15 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationBase
;
18 * This view allows to search for and filter {@link SpecimenOrObservationBase}s and display
19 * the results in a list. The results can be selected and opened in an editor.
21 public class DerivateSearchView
extends ViewPart
{
23 private DerivateSearchCompositeController derivateSearchCompositeController
;
25 public DerivateSearchView() {
29 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
32 public void createPartControl(Composite parent
) {
33 derivateSearchCompositeController
= new DerivateSearchCompositeController(parent
);
34 getSite().setSelectionProvider(derivateSearchCompositeController
.getDerivateSearchComposite().getResultViewer());
38 * @see org.eclipse.ui.part.WorkbenchPart#setFocus()
41 public void setFocus() {
42 derivateSearchCompositeController
.getDerivateSearchComposite().setFocus();