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
.navigation
.handler
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.jface
.wizard
.WizardPage
;
15 import org
.eclipse
.swt
.SWT
;
16 import org
.eclipse
.swt
.custom
.CLabel
;
17 import org
.eclipse
.swt
.layout
.GridData
;
18 import org
.eclipse
.swt
.layout
.GridLayout
;
19 import org
.eclipse
.swt
.widgets
.Composite
;
20 import org
.eclipse
.swt
.widgets
.Text
;
27 public class NewTaxonomicTreeWizadPage
extends WizardPage
{
28 private static final Logger logger
= Logger
29 .getLogger(NewTaxonomicTreeWizadPage
.class);
31 private Text text_treeLabel
;
36 protected NewTaxonomicTreeWizadPage(String pageName
) {
41 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
43 public void createControl(Composite parent
) {
46 Composite composite
= new Composite(parent
, SWT
.NONE
);
47 GridLayout gridLayout
= new GridLayout();
48 gridLayout
.numColumns
= 2;
49 composite
.setLayout(gridLayout
);
51 CLabel label_treeLabel
= new CLabel(composite
, SWT
.NULL
);
52 label_treeLabel
.setText("Label:");
54 text_treeLabel
= new Text(composite
, SWT
.BORDER
);
55 text_treeLabel
.setLayoutData(new GridData(SWT
.FILL
, SWT
.FILL
, true, false));
57 // FIXME this is a rudimentary implementation. Add missing fields.
59 setControl(composite
);
63 * @return the text_treeLabel
65 public String
getTreeLabel() {
66 return text_treeLabel
.getText();