Merge branch 'release/4.6.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.molecular / src / main / java / eu / etaxonomy / taxeditor / molecular / io / wizard / ExportSingleReadAlignmentWizard.java
1 // $Id$
2 /**
3 * Copyright (C) 2016 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.taxeditor.molecular.io.wizard;
11
12
13 import org.eclipse.jface.wizard.Wizard;
14
15 import eu.etaxonomy.taxeditor.molecular.l10n.Messages;
16
17
18
19 /**
20 * A wizard to export a single read alignment from <i>CDM</i> using <i>JPhyloIO</i>.
21 *
22 * @author Ben Stöver
23 * @date 23.06.2016
24 */
25 public class ExportSingleReadAlignmentWizard extends Wizard {
26 private ExportSingleReadAlignmentWizardModel model = new ExportSingleReadAlignmentWizardModel();
27
28 private ExportSingleReadAlignmentFileFormatPage fileFormatPage;
29 private ExportSingleReadAlignmentOptionsPage optionsPage;
30
31
32 public ExportSingleReadAlignmentWizard() {
33 setWindowTitle(Messages.ExportSingleReadAlignmentWizard_EXPORT_SINGLE_READ); //TODO Use multi language message
34 }
35
36
37 public ExportSingleReadAlignmentWizardModel getModel() {
38 return model;
39 }
40
41
42 @Override
43 public void addPages() {
44 fileFormatPage = new ExportSingleReadAlignmentFileFormatPage();
45 optionsPage = new ExportSingleReadAlignmentOptionsPage();
46
47 addPage(fileFormatPage);
48 addPage(optionsPage);
49 }
50
51
52 @Override
53 public boolean performFinish() {
54 return true;
55 //TODO Add default extension to file, if necessary?
56 }
57 }