code cleaning and fix potential null pointer
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / e4 / in / ImportFromFileDataSourceWithReferenceWizardPage.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.taxeditor.io.e4.in;
11
12 import javax.inject.Inject;
13
14 import org.eclipse.swt.SWT;
15 import org.eclipse.swt.layout.GridData;
16 import org.eclipse.swt.widgets.Composite;
17 import org.eclipse.swt.widgets.Label;
18 import org.eclipse.swt.widgets.Text;
19
20 /**
21 *
22 * @author pplitzner
23 * @since Oct 5, 2017
24 *
25 */
26 public class ImportFromFileDataSourceWithReferenceWizardPage extends ImportFromFileDataSourceWizardPage {
27
28 private Text textReferenceString;
29
30 @Inject
31 public ImportFromFileDataSourceWithReferenceWizardPage() {
32 super();
33 }
34
35 /** {@inheritDoc} */
36 @Override
37 public void createControl(Composite parent) {
38 super.createControl(parent);
39
40 Label labelRef = new Label(composite, SWT.NONE);
41 labelRef.setText("Default import source reference");
42 new Label(composite, SWT.NONE);
43 textReferenceString = new Text(composite, SWT.NONE);
44 textReferenceString.setEnabled(true);
45 textReferenceString.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1));
46 new Label(composite, SWT.NONE);
47 }
48
49 public Text getTextReferenceString() {
50 return textReferenceString;
51 }
52
53 public void setTextReferenceString(Text textReferenceString) {
54 this.textReferenceString = textReferenceString;
55 }
56
57 }