Revision fb649daa
Added by Patrick Plitzner over 10 years ago
- added functionality to context menu for derivate creation
- fixed a bug where two FieldUnits were created instead of only on
- added javadoc
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/campanula/derivatesearch/DerivateSearchComposite.java | ||
---|---|---|
22 | 22 |
import org.eclipse.ui.forms.widgets.FormToolkit; |
23 | 23 |
|
24 | 24 |
/** |
25 |
* @author pplitzner |
|
26 |
* @date 25.11.2013 |
|
25 |
* The widgets of the {@link DerivateSearchView}<br> |
|
27 | 26 |
* |
28 | 27 |
*/ |
29 | 28 |
public class DerivateSearchComposite extends Composite { |
30 | 29 |
private final FormToolkit formToolkit = new FormToolkit(Display.getDefault()); |
31 |
private Text searchField; |
|
32 |
private Table table; |
|
33 |
private TableViewer resultViewer; |
|
34 |
private Combo comboDerivateType; |
|
30 |
private final Text searchField;
|
|
31 |
private final Table table;
|
|
32 |
private final TableViewer resultViewer;
|
|
33 |
private final Combo comboDerivateType;
|
|
35 | 34 |
|
36 | 35 |
/** |
37 | 36 |
* Create the composite. |
... | ... | |
44 | 43 |
|
45 | 44 |
Label lblDerivateType = new Label(this, SWT.NULL); |
46 | 45 |
lblDerivateType.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
47 |
lblDerivateType.setText("Derivate Type");
|
|
46 |
lblDerivateType.setText("Derivate Filter");
|
|
48 | 47 |
|
49 | 48 |
comboDerivateType = new Combo(this, SWT.NONE); |
50 | 49 |
comboDerivateType.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
51 | 50 |
formToolkit.paintBordersFor(comboDerivateType); |
52 | 51 |
|
52 |
Label lblNameFilter = new Label(this, SWT.NULL); |
|
53 |
lblNameFilter.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
|
54 |
lblNameFilter.setText("Name Filter"); |
|
55 |
|
|
53 | 56 |
searchField = formToolkit.createText(this, "New Text", SWT.NONE); |
54 | 57 |
searchField.setText(""); |
55 |
searchField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
|
|
58 |
searchField.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
|
|
56 | 59 |
|
57 | 60 |
resultViewer = new TableViewer(this, SWT.BORDER | SWT.FULL_SELECTION); |
58 | 61 |
table = resultViewer.getTable(); |
Also available in: Unified diff