dd079db6e55e2063c50d9bdc387a88bacc1d81f5
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / translation / TranslationWizard.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 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
11 package eu.etaxonomy.taxeditor.ui.translation;
12
13 import java.util.Map;
14
15 import org.eclipse.jface.wizard.Wizard;
16
17 import eu.etaxonomy.cdm.model.common.Language;
18 import eu.etaxonomy.cdm.model.common.LanguageString;
19
20 /**
21 * <p>TranslationWizard class.</p>
22 *
23 * @author n.hoffmann
24 * @created Sep 29, 2010
25 * @version 1.0
26 */
27 public class TranslationWizard extends Wizard {
28
29 private TranslationWizardPage page;
30
31 private Map<Language, LanguageString> multilanguageText;
32
33 /**
34 * <p>Constructor for TranslationWizard.</p>
35 *
36 * @param multilanguageText a {@link java.util.Map} object.
37 */
38 public TranslationWizard(Map<Language, LanguageString> multilanguageText) {
39 setWindowTitle("Translation Editor");
40 this.multilanguageText = multilanguageText;
41 setNeedsProgressMonitor(true);
42 }
43
44 /* (non-Javadoc)
45 * @see org.eclipse.jface.wizard.Wizard#addPages()
46 */
47 /** {@inheritDoc} */
48 @Override
49 public void addPages() {
50 page = new TranslationWizardPage(multilanguageText);
51 addPage(page);
52 }
53
54 /* (non-Javadoc)
55 * @see org.eclipse.jface.wizard.Wizard#performFinish()
56 */
57 /** {@inheritDoc} */
58 @Override
59 public boolean performFinish() {
60 return true;
61 }
62
63
64 }