3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.taxeditor
.datasource
.wizard
;
13 import eu
.etaxonomy
.cdm
.database
.CdmDataSource
;
14 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
17 * <p>CdmDataSourceH2WizardPage class.</p>
23 public class CdmDataSourceH2WizardPage
extends CdmDataSourceCredentialsWizardPage
{
26 * <p>Constructor for CdmDataSourceH2WizardPage.</p>
28 * @param dataSource a {@link eu.etaxonomy.cdm.database.ICdmDataSource} object.
30 protected CdmDataSourceH2WizardPage(ICdmDataSource dataSource
) {
32 setTitle("Enter credentials for embedded H2 database");
33 this.setDataSource(dataSource
);
37 * @see eu.etaxonomy.taxeditor.store.datasource.CdmDataSourceCredentialsWizardPage#createDatabaseForm()
41 public void createDatabaseForm() {
42 // no more fields needed for embedded H2
46 * @see eu.etaxonomy.taxeditor.store.datasource.CdmDataSourceCredentialsWizardPage#updateLocation()
50 public void updateLocation() {
51 // nothing to do, no location data provided
55 * @see eu.etaxonomy.taxeditor.datasource.wizard.CdmDataSourceCredentialsWizardPage#updateDataSource()
59 public void updateDataSource() {
60 setDataSource(CdmDataSource
.NewH2EmbeddedInstance(database
,
67 * @see eu.etaxonomy.taxeditor.datasource.wizard.CdmDataSourceCredentialsWizardPage#checkPageComplete()
71 public void checkPageComplete() {
72 super.checkPageComplete();