Project

General

Profile

« Previous | Next » 

Revision 0f31eab7

Added by Patrick Plitzner almost 6 years ago

ref #7362 Add term details to GfBio import composite

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/GfBioTerminologyImportComposite.java
16 16
import org.eclipse.swt.widgets.Button;
17 17
import org.eclipse.swt.widgets.Combo;
18 18
import org.eclipse.swt.widgets.Composite;
19
import org.eclipse.swt.widgets.Label;
19 20
import org.eclipse.swt.widgets.Text;
20 21
import org.eclipse.swt.widgets.Tree;
21 22

  
......
33 34
    private Composite composite;
34 35
    private Button btnRemoveTerminology;
35 36
    private ComboViewer comboTerminologies;
37
    private Composite composite_1;
38
    private Composite composite_2;
39
    private Label lblNewLabel;
40
    private Label lblNewLabel_1;
41
    private Label lblNewLabel_2;
42
    private Text txtLabel;
43
    private Text txtUri;
44
    private Text txtDescription;
36 45

  
37 46
    public GfBioTerminologyImportComposite(Composite parent, int style) {
38 47
        super(parent, style);
......
55 64
        btnSearch = new Button(composite, SWT.NONE);
56 65
        btnSearch.setText("Search");
57 66

  
58
        treeTermHierarchy = new TreeViewer(this, SWT.BORDER);
67
        composite_2 = new Composite(this, SWT.NONE);
68
        composite_2.setLayout(new GridLayout(2, false));
69
        composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
70

  
71
        treeTermHierarchy = new TreeViewer(composite_2, SWT.BORDER);
59 72
        Tree tree = treeTermHierarchy.getTree();
60
        GridData gd_tree = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);
61
        gd_tree.widthHint = 423;
62
        tree.setLayoutData(gd_tree);
73
        tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
74

  
75
        composite_1 = new Composite(composite_2, SWT.NONE);
76
        composite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
77
        composite_1.setLayout(new GridLayout(2, false));
78

  
79
        lblNewLabel = new Label(composite_1, SWT.NONE);
80
        lblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
81
        lblNewLabel.setText("Label");
82

  
83
        txtLabel = new Text(composite_1, SWT.NONE);
84
        txtLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
85

  
86
        lblNewLabel_1 = new Label(composite_1, SWT.NONE);
87
        lblNewLabel_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
88
        lblNewLabel_1.setText("URI");
89

  
90
        txtUri = new Text(composite_1, SWT.NONE);
91
        txtUri.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
92

  
93
        lblNewLabel_2 = new Label(composite_1, SWT.NONE);
94
        lblNewLabel_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
95
        lblNewLabel_2.setText("Description");
96

  
97
        txtDescription = new Text(composite_1, SWT.NONE);
98
        txtDescription.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
63 99
    }
64 100
    public TreeViewer getTreeTermHierarchy() {
65 101
        return treeTermHierarchy;
......
76 112
    public ComboViewer getComboTerminologies() {
77 113
        return comboTerminologies;
78 114
    }
115
    public Text getLblDescription() {
116
        return txtDescription;
117
    }
118
    public Text getLblUri() {
119
        return txtUri;
120
    }
121
    public Text getLblLabel() {
122
        return txtLabel;
123
    }
79 124
}

Also available in: Unified diff