Revision aeef81e4
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/DescriptiveDataSetComposite.java | ||
---|---|---|
44 | 44 |
private Text textAreaText; |
45 | 45 |
private Button btnChooseArea; |
46 | 46 |
private Button btnRemoveArea; |
47 |
private Button btnRemoveRankMin; |
|
48 |
private Button btnRemoveRankMax; |
|
47 | 49 |
|
48 | 50 |
public DescriptiveDataSetComposite(Composite parent, int style) { |
49 | 51 |
super(parent, style); |
... | ... | |
64 | 66 |
lblNewLabel_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
65 | 67 |
lblNewLabel_2.setText(Messages.DescriptiveDataSetComposite_RANK_MIN); |
66 | 68 |
|
67 |
comboRankMin = new TermUuidComboViewer(this, SWT.NONE); |
|
69 |
Composite composite_1 = new Composite(this, SWT.NONE); |
|
70 |
composite_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
|
71 |
GridLayout gl_composite_1 = new GridLayout(2, false); |
|
72 |
gl_composite_1.horizontalSpacing = 0; |
|
73 |
gl_composite_1.verticalSpacing = 0; |
|
74 |
gl_composite_1.marginWidth = 0; |
|
75 |
gl_composite_1.marginHeight = 0; |
|
76 |
composite_1.setLayout(gl_composite_1); |
|
77 |
|
|
78 |
comboRankMin = new TermUuidComboViewer(composite_1, SWT.NONE); |
|
79 |
comboRankMin.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
|
68 | 80 |
comboRankMin.setInput(TermType.Rank); |
69 |
comboRankMin.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); |
|
81 |
|
|
82 |
btnRemoveRankMin = new Button(composite_1, SWT.NONE); |
|
83 |
btnRemoveRankMin.setImage(ImageResources.getImage(ImageResources.TRASH_ICON)); |
|
84 |
|
|
70 | 85 |
Tree tree = new Tree(this, SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION); |
71 | 86 |
tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 4)); |
72 | 87 |
taxonNodeTree = new TreeViewer(tree); |
... | ... | |
78 | 93 |
lblNewLabel_3.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
79 | 94 |
lblNewLabel_3.setText(Messages.DescriptiveDataSetComposite_RANK_MAX); |
80 | 95 |
|
81 |
comboRankMax = new TermUuidComboViewer(this, SWT.NONE); |
|
96 |
Composite composite_2 = new Composite(this, SWT.NONE); |
|
97 |
composite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
|
98 |
GridLayout gl_composite_2 = new GridLayout(2, false); |
|
99 |
gl_composite_2.horizontalSpacing = 0; |
|
100 |
gl_composite_2.verticalSpacing = 0; |
|
101 |
gl_composite_2.marginWidth = 0; |
|
102 |
gl_composite_2.marginHeight = 0; |
|
103 |
composite_2.setLayout(gl_composite_2); |
|
104 |
|
|
105 |
comboRankMax = new TermUuidComboViewer(composite_2, SWT.NONE); |
|
106 |
comboRankMax.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
|
82 | 107 |
comboRankMax.setInput(TermType.Rank); |
83 |
comboRankMax.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1)); |
|
108 |
|
|
109 |
btnRemoveRankMax = new Button(composite_2, SWT.NONE); |
|
110 |
btnRemoveRankMax.setImage(ImageResources.getImage(ImageResources.TRASH_ICON)); |
|
84 | 111 |
|
85 | 112 |
Label lblNewLabel_4 = new Label(this, SWT.NONE); |
86 | 113 |
lblNewLabel_4.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
... | ... | |
107 | 134 |
btnRemoveArea.setImage(ImageResources.getImage(ImageResources.TRASH_ICON)); |
108 | 135 |
|
109 | 136 |
featureTreeEditorComposite = new FeatureTreeEditorComposite(this, SWT.NONE); |
110 |
featureTreeEditorComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 2)); |
|
111 |
new Label(this, SWT.NONE); |
|
137 |
featureTreeEditorComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); |
|
112 | 138 |
} |
113 | 139 |
|
114 | 140 |
@Override |
... | ... | |
165 | 191 |
public Button getBtnRemoveArea() { |
166 | 192 |
return btnRemoveArea; |
167 | 193 |
} |
194 |
public Button getBtnRemoveRankMin() { |
|
195 |
return btnRemoveRankMin; |
|
196 |
} |
|
197 |
public Button getBtnRemoveRankMax() { |
|
198 |
return btnRemoveRankMax; |
|
199 |
} |
|
168 | 200 |
} |
Also available in: Unified diff
Add option to remove min/max rank in DDS editor