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
.printpublisher
.wizard
;
13 import eu
.etaxonomy
.cdm
.print
.PublishConfigurator
;
16 * <p>DirectPublishingWizard class.</p>
19 * @created Aug 6, 2010
22 public class DirectPublishingWizard
extends AbstractPublishWizard
{
25 * <p>Constructor for DirectPublishingWizard.</p>
27 * @param configurator a {@link eu.etaxonomy.cdm.print.PublishConfigurator} object.
29 public DirectPublishingWizard(PublishConfigurator configurator
) {
30 setConfigurator(configurator
);
31 setOutputModule(configurator
.getOutputModules().iterator().next());
36 public void addPages() {
37 pageOptions
= new OptionsWizardPage(PAGE_OPTIONS
);
40 pageFeatureTree
= new SelectFeatureTreeWizardPage(PAGE_FEATURETREE
);
41 addPage(pageFeatureTree
);
43 pageFolder
= new SelectFolderWizardPage(PAGE_FOLDER
);
46 pageOverview
= new OverviewWizardPage(PAGE_OVERVIEW
);
47 addPage(pageOverview
);
52 public boolean performFinish() {
53 return super.performFinish();
61 public boolean canFinish() {
62 return pageFeatureTree
.isPageComplete()
63 && pageFolder
.isPageComplete();