Revision 85bd68d3
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/SpecimenOrObservationPreferences.java | ||
---|---|---|
50 | 50 |
protected boolean overrideShowLifeForm; |
51 | 51 |
Composite composite; |
52 | 52 |
|
53 |
protected Button showSpecimenButton; |
|
54 |
protected Button allowOverrideIsShowSpecimenRelatedIssuesButton; |
|
55 |
protected Button showCollectingAreaInGeneralSectionButton; |
|
56 |
protected Button allowOverrideShowCollectingAreaButton; |
|
57 |
protected Button determinationOnlyForFieldUnitsButton; |
|
58 |
protected Button allowOverridesDeterminationOnlyForFieldUnitsButton; |
|
59 |
protected Button showTaxonAssociationButton; |
|
60 |
protected Button allowOverrideIsShowTaxonAssociationButton; |
|
61 |
protected Button allowOverrideShowLifeFormButton; |
|
62 |
protected Button showLifeFormButton; |
|
63 |
|
|
53 | 64 |
|
54 | 65 |
@Override |
55 | 66 |
public void init() { |
... | ... | |
91 | 102 |
Label separator= new Label(titleComp, SWT.HORIZONTAL | SWT.SEPARATOR); |
92 | 103 |
separator.setLayoutData(gridData); |
93 | 104 |
separator.setVisible(false); |
94 |
final Button showSpecimenButton = new Button(titleComp, SWT.CHECK);
|
|
105 |
showSpecimenButton = new Button(titleComp, SWT.CHECK); |
|
95 | 106 |
|
96 | 107 |
showSpecimenButton.setText(Messages.DatabasePreferncesPage_Show_Specimen); |
97 | 108 |
|
... | ... | |
110 | 121 |
// } |
111 | 122 |
} |
112 | 123 |
}); |
113 |
Button allowOverrideIsShowSpecimenRelatedIssuesButton = createAllowOverrideButton(titleComp);
|
|
124 |
allowOverrideIsShowSpecimenRelatedIssuesButton = createAllowOverrideButton(titleComp); |
|
114 | 125 |
|
115 | 126 |
|
116 | 127 |
if (isAdminPreference){ |
... | ... | |
143 | 154 |
separator= new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR); |
144 | 155 |
separator.setLayoutData(gridData); |
145 | 156 |
|
146 |
final Button showCollectingAreaInGeneralSectionButton = new Button(composite, SWT.CHECK);
|
|
157 |
showCollectingAreaInGeneralSectionButton = new Button(composite, SWT.CHECK); |
|
147 | 158 |
|
148 | 159 |
showCollectingAreaInGeneralSectionButton.setText(Messages.DatabasePreferncesPage_Show_Collecting_Areas_in_general_section); |
149 | 160 |
|
... | ... | |
156 | 167 |
|
157 | 168 |
} |
158 | 169 |
}); |
159 |
Button allowOverrideShowCollectingAreaButton = createAllowOverrideButton(composite);
|
|
170 |
allowOverrideShowCollectingAreaButton = createAllowOverrideButton(composite); |
|
160 | 171 |
if (isAdminPreference){ |
161 | 172 |
allowOverrideShowCollectingAreaButton.setSelection(allowOverrideShowCollectingAreaInGeneralSection); |
162 | 173 |
allowOverrideShowCollectingAreaButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
181 | 192 |
} |
182 | 193 |
} |
183 | 194 |
|
184 |
final Button determinationOnlyForFieldUnitsButton = new Button(composite, SWT.CHECK);
|
|
195 |
determinationOnlyForFieldUnitsButton = new Button(composite, SWT.CHECK); |
|
185 | 196 |
determinationOnlyForFieldUnitsButton.setText(Messages.DatabasePreferncesPage_Determination_only_for_field_unnits); |
186 | 197 |
determinationOnlyForFieldUnitsButton.setSelection(isDeterminationOnlyForFieldUnits); |
187 | 198 |
determinationOnlyForFieldUnitsButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
192 | 203 |
} |
193 | 204 |
}); |
194 | 205 |
|
195 |
Button allowOverridesDeterminationOnlyForFieldUnitsButton = createAllowOverrideButton(composite);
|
|
206 |
allowOverridesDeterminationOnlyForFieldUnitsButton = createAllowOverrideButton(composite); |
|
196 | 207 |
if (isAdminPreference){ |
197 | 208 |
allowOverridesDeterminationOnlyForFieldUnitsButton.setSelection(allowOverrideDeterminationOnlyForFieldUnits); |
198 | 209 |
allowOverridesDeterminationOnlyForFieldUnitsButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
217 | 228 |
} |
218 | 229 |
} |
219 | 230 |
|
220 |
final Button showTaxonAssociationButton = new Button(composite, SWT.CHECK);
|
|
231 |
showTaxonAssociationButton = new Button(composite, SWT.CHECK); |
|
221 | 232 |
|
222 | 233 |
showTaxonAssociationButton.setText(Messages.DatabasePreferncesPage_Taxon_Associations); |
223 | 234 |
|
... | ... | |
230 | 241 |
|
231 | 242 |
} |
232 | 243 |
}); |
233 |
Button allowOverrideIsShowTaxonAssociationButton = createAllowOverrideButton(composite);
|
|
244 |
allowOverrideIsShowTaxonAssociationButton = createAllowOverrideButton(composite); |
|
234 | 245 |
if (isAdminPreference){ |
235 | 246 |
allowOverrideIsShowTaxonAssociationButton.setSelection(allowOverrideShowTaxonAssociation); |
236 | 247 |
allowOverrideIsShowTaxonAssociationButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
255 | 266 |
} |
256 | 267 |
} |
257 | 268 |
|
258 |
final Button showLifeFormButton = new Button(composite, SWT.CHECK);
|
|
269 |
showLifeFormButton = new Button(composite, SWT.CHECK); |
|
259 | 270 |
showLifeFormButton.setText(Messages.DatabasePreferncesPage_Life_Form); |
260 | 271 |
showLifeFormButton.setSelection(isShowLifeForm); |
261 | 272 |
showLifeFormButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
267 | 278 |
} |
268 | 279 |
}); |
269 | 280 |
|
270 |
Button allowOverrideShowLifeFormButton = createAllowOverrideButton(composite);
|
|
281 |
allowOverrideShowLifeFormButton = createAllowOverrideButton(composite); |
|
271 | 282 |
if (isAdminPreference){ |
272 | 283 |
allowOverrideShowLifeFormButton.setSelection(allowOverrideShowLifeForm); |
273 | 284 |
allowOverrideShowLifeFormButton.addSelectionListener(new SelectionAdapter(){ |
Also available in: Unified diff
ref #7849: add correct handling for restoreDefaults in DB preference pages