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
.dataimport
;
12 import org
.eclipse
.jface
.wizard
.WizardPage
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
15 import eu
.etaxonomy
.taxeditor
.view
.specimenSearch
.SpecimenProviderSelectionController
;
19 * Wizard page for selecting the specimen provider
24 public class SpecimenProviderSelectionWizardPage
extends WizardPage
{
26 private SpecimenProviderSelectionController specimenProviderSelectionController
;
28 protected SpecimenProviderSelectionWizardPage(String pageName
) {
30 setTitle("Select Specimen Provider");
31 setDescription("Select the provider to query for specimens.\nTo query a BioCASE " +
32 "provider the access point URL must be entered.");
36 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
39 public void createControl(Composite parent
) {
40 specimenProviderSelectionController
= new SpecimenProviderSelectionController(parent
);
41 setControl(specimenProviderSelectionController
.getComposite());
44 public QueryType
getQueryType(){
45 if(specimenProviderSelectionController
.getComposite().getBtnBioCaseProvider().getSelection()){
46 return QueryType
.BIOCASE
;
48 else {// if(specimenProviderSelectionController.getComposite().getBtnGbif().getSelection()){
49 return QueryType
.GBIF
;