Project

General

Profile

« Previous | Next » 

Revision 341c6293

Added by Patrick Plitzner over 5 years ago

ref #7806 show search result count

  • also remove "Load details" button

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/GfBioTerminologyImportComposite.java
12 12
import org.eclipse.jface.viewers.ListViewer;
13 13
import org.eclipse.jface.viewers.TreeViewer;
14 14
import org.eclipse.swt.SWT;
15
import org.eclipse.swt.custom.ScrolledComposite;
16 15
import org.eclipse.swt.layout.GridData;
17 16
import org.eclipse.swt.layout.GridLayout;
18 17
import org.eclipse.swt.widgets.Button;
......
50 49
    private Text txtLabel;
51 50
    private Text txtUri;
52 51
    private Text txtDescription;
53
    private Button btnLoadDetails;
54 52
    private Label lblNewLabel_3;
55 53
    private Composite composite_3;
56 54
    private Label lblNewLabel_4;
......
58 56
    private TermVocabularyComboViewer termVocabularyComboViewer;
59 57
    private List list;
60 58
    private ListViewer listSynonyms;
59
    private Composite composite_4;
60
    private Label lblNewLabel_5;
61
    private Composite composite_5;
62
    private Label lblResultCount;
61 63

  
62 64
    public GfBioTerminologyImportComposite(Composite parent, int style) {
63 65
        super(parent, style);
......
100 102
        composite_2.setLayout(new GridLayout(2, false));
101 103
        composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
102 104

  
103
        treeTermHierarchy = new TreeViewer(composite_2, SWT.BORDER);
105
        composite_4 = new Composite(composite_2, SWT.NONE);
106
        composite_4.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
107
        composite_4.setLayout(new GridLayout(1, false));
108

  
109
        treeTermHierarchy = new TreeViewer(composite_4, SWT.BORDER);
104 110
        Tree tree = treeTermHierarchy.getTree();
105 111
        tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
106 112

  
113
        composite_5 = new Composite(composite_4, SWT.NONE);
114
        composite_5.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
115
        composite_5.setLayout(new GridLayout(2, false));
116

  
117
        lblNewLabel_5 = new Label(composite_5, SWT.NONE);
118
        lblNewLabel_5.setText("Results found:");
119

  
120
        lblResultCount = new Label(composite_5, SWT.NONE);
121
        lblResultCount.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
122

  
107 123
        composite_1 = new Composite(composite_2, SWT.NONE);
108 124
        composite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
109 125
        composite_1.setLayout(new GridLayout(2, false));
110
        new Label(composite_1, SWT.NONE);
111

  
112
        btnLoadDetails = new Button(composite_1, SWT.NONE);
113
        btnLoadDetails.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
114
        btnLoadDetails.setText("Load Details");
115 126

  
116 127
        lblNewLabel = new Label(composite_1, SWT.NONE);
117 128
        lblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
......
135 146
        lblNewLabel_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
136 147
        lblNewLabel_2.setText("Description");
137 148

  
138
        txtDescription = new Text(composite_1, SWT.NONE);
149
        txtDescription = new Text(composite_1, SWT.WRAP);
139 150
        txtDescription.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
140 151
        txtDescription.setEditable(false);
141 152
        txtDescription.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
......
172 183
    public Text getLblLabel() {
173 184
        return txtLabel;
174 185
    }
175
    public Button getBtnLoadDetails() {
176
        return btnLoadDetails;
177
    }
178 186
    public ListViewer getListSynonyms() {
179 187
        return listSynonyms;
180 188
    }
......
184 192
    public Button getBtnRemoveVocabulary() {
185 193
        return btnRemoveVocabulary;
186 194
    }
195
    public Label getLblResultCount() {
196
        return lblResultCount;
197
    }
187 198
}

Also available in: Unified diff