p2izing the editor
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / io / InputWizard2.java
1 package eu.etaxonomy.taxeditor.io;
2
3 import org.apache.log4j.Logger;
4 import org.eclipse.jface.wizard.WizardPage;
5 import org.eclipse.swt.SWT;
6 import org.eclipse.swt.layout.FillLayout;
7 import org.eclipse.swt.layout.GridData;
8 import org.eclipse.swt.layout.GridLayout;
9 import org.eclipse.swt.widgets.Button;
10 import org.eclipse.swt.widgets.Composite;
11 import org.eclipse.swt.widgets.Label;
12 import org.eclipse.swt.widgets.Text;
13
14 public class InputWizard2 extends WizardPage {
15 private Text text;
16 private static final Logger logger = Logger.getLogger(InputWizard2.class);
17
18 /**
19 * Create the wizard
20 */
21 public InputWizard2() {
22 super("wizardPage");
23 setTitle("Input data from file");
24 }
25
26 /**
27 * Create contents of the wizard
28 * @param parent
29 */
30 public void createControl(Composite parent) {
31 Composite container = new Composite(parent, SWT.NULL);
32 final GridLayout gridLayout = new GridLayout();
33 gridLayout.numColumns = 2;
34 container.setLayout(gridLayout);
35 //
36 setControl(container);
37
38 final Composite composite = new Composite(container, SWT.NONE);
39 composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
40 composite.setLayout(new GridLayout());
41
42 final Label chooseFileFormatLabel = new Label(composite, SWT.NONE);
43 final GridData gd_chooseFileFormatLabel = new GridData(SWT.LEFT, SWT.CENTER, true, false);
44 chooseFileFormatLabel.setLayoutData(gd_chooseFileFormatLabel);
45 chooseFileFormatLabel.setText("Choose file format:");
46
47 final Button tcsButton = new Button(composite, SWT.RADIO);
48 tcsButton.setText("TCS");
49
50 final Button abcdButton = new Button(composite, SWT.RADIO);
51 abcdButton.setText("ABCD");
52 new Label(container, SWT.NONE);
53
54 final Composite composite_1 = new Composite(container, SWT.NONE);
55 composite_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));
56 composite_1.setLayout(new GridLayout());
57
58 final Label chooseFileLabel = new Label(composite_1, SWT.NONE);
59 final GridData gd_chooseFileLabel = new GridData(SWT.LEFT, SWT.CENTER, true, false);
60 chooseFileLabel.setLayoutData(gd_chooseFileLabel);
61 chooseFileLabel.setText("Choose file:");
62 new Label(container, SWT.NONE);
63
64 text = new Text(container, SWT.BORDER);
65 text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
66
67 final Button browseButton = new Button(container, SWT.NONE);
68 browseButton.setText("Browse ...");
69 }
70 }