124 |
124 |
return;
|
125 |
125 |
}
|
126 |
126 |
Composite composite = new Composite(parent, SWT.NONE);
|
|
127 |
// composite.setBounds(0, 0, 0, 298);
|
127 |
128 |
composite.setLayout(new GridLayout(2, false));
|
128 |
129 |
|
129 |
130 |
Composite composite_1 = new Composite(composite, SWT.NONE);
|
130 |
|
GridData gd_composite_1 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);
|
131 |
|
gd_composite_1.widthHint = 280;
|
132 |
|
composite_1.setLayoutData(gd_composite_1);
|
|
131 |
// gd_composite_1.widthHint = 280;
|
|
132 |
composite_1.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
|
133 |
133 |
composite_1.setLayout(new GridLayout(3, false));
|
134 |
134 |
|
135 |
135 |
Label label = new Label(composite_1, SWT.TOP);
|
... | ... | |
138 |
138 |
textClassification = new Text(composite_1, SWT.BORDER);
|
139 |
139 |
textClassification.setEnabled(false);
|
140 |
140 |
GridData gd_textClassification = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
|
141 |
|
gd_textClassification.widthHint = 118;
|
|
141 |
// gd_textClassification.widthHint = 118;
|
142 |
142 |
textClassification.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, true));
|
143 |
143 |
btnBrowseClassification = new Button(composite_1, SWT.NONE);
|
144 |
144 |
btnBrowseClassification.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/open.gif"));
|
... | ... | |
174 |
174 |
|
175 |
175 |
//checkbox table for result
|
176 |
176 |
Composite composite_2 = new Composite(composite, SWT.NONE);
|
177 |
|
GridData gd_composite_2 = new GridData(SWT.LEFT, SWT.TOP, true, true, 1, 1);
|
178 |
|
gd_composite_2.heightHint = 454;
|
179 |
|
gd_composite_2.widthHint = 403;
|
|
177 |
// gd_composite_2.heightHint = 454;
|
|
178 |
// gd_composite_2.widthHint = 403;
|
|
179 |
GridData gd_composite_2 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);
|
|
180 |
gd_composite_2.minimumWidth = 350;
|
|
181 |
gd_composite_2.minimumHeight = 400;
|
180 |
182 |
composite_2.setLayoutData(gd_composite_2);
|
181 |
183 |
composite_2.setLayout(new GridLayout(2, false));
|
182 |
184 |
|
... | ... | |
185 |
187 |
|
186 |
188 |
|
187 |
189 |
table = checkboxTableViewer.getTable();
|
|
190 |
// gd_table.heightHint = 252;
|
|
191 |
// gd_table.widthHint = 312;
|
188 |
192 |
GridData gd_table = new GridData(SWT.LEFT, SWT.TOP, true, true, 1, 1);
|
189 |
|
gd_table.heightHint = 444;
|
190 |
|
gd_table.widthHint = 312;
|
|
193 |
gd_table.minimumWidth = 350;
|
|
194 |
gd_table.minimumHeight = 400;
|
191 |
195 |
table.setLayoutData(gd_table);
|
192 |
196 |
toolkit.paintBordersFor(table);
|
193 |
197 |
|
194 |
198 |
composite_3 = new Composite(composite_2, SWT.NONE);
|
|
199 |
// gd_composite_3.heightHint = 48;
|
195 |
200 |
composite_3.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1));
|
196 |
201 |
toolkit.paintBordersFor(composite_3);
|
197 |
202 |
composite_3.setLayout(new GridLayout(1, false));
|
198 |
203 |
//toggle button
|
199 |
204 |
toggleButton = new Button(composite_3, SWT.PUSH);
|
200 |
205 |
toggleButton.setText("Toggle");
|
|
206 |
new Label(composite_2, SWT.NONE);
|
201 |
207 |
|
202 |
|
importButton = new Button(composite_3, SWT.PUSH);
|
203 |
|
importButton.setText("Import");
|
204 |
|
importButton.addSelectionListener(new SelectionAdapter(){
|
205 |
|
@Override
|
206 |
|
public void widgetSelected(SelectionEvent e) {
|
207 |
|
saveImportedSpecimenAction.run();
|
208 |
|
}
|
209 |
|
});
|
|
208 |
Composite composite_4 = new Composite(composite_2, SWT.NONE);
|
|
209 |
toolkit.adapt(composite_4);
|
|
210 |
toolkit.paintBordersFor(composite_4);
|
|
211 |
|
|
212 |
importButton = new Button(composite_4, SWT.PUSH);
|
|
213 |
importButton.setSize(48, 25);
|
|
214 |
importButton.setText("Import");
|
|
215 |
importButton.addSelectionListener(new SelectionAdapter(){
|
|
216 |
@Override
|
|
217 |
public void widgetSelected(SelectionEvent e) {
|
|
218 |
saveImportedSpecimenAction.run();
|
|
219 |
}
|
|
220 |
});
|
|
221 |
new Label(composite_2, SWT.NONE);
|
|
222 |
new Label(composite_2, SWT.NONE);
|
|
223 |
new Label(composite_2, SWT.NONE);
|
|
224 |
new Label(composite_2, SWT.NONE);
|
|
225 |
new Label(composite_2, SWT.NONE);
|
|
226 |
new Label(composite_2, SWT.NONE);
|
210 |
227 |
toggleButton.addSelectionListener(new SelectionAdapter(){
|
211 |
228 |
@Override
|
212 |
229 |
public void widgetSelected(SelectionEvent e) {
|
changes in specimen import view