Revision 85bd68d3
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java | ||
---|---|---|
60 | 60 |
protected boolean overrideStatusDisplay; |
61 | 61 |
|
62 | 62 |
protected boolean allowOverrideStatus; |
63 |
Combo areaOrderSelectionCombo; |
|
64 |
Combo statusDisplaySelectionCombo; |
|
65 |
Combo areaDisplaySelectionCombo; |
|
66 |
|
|
63 |
protected Combo areaOrderSelectionCombo; |
|
64 |
protected Button allowOverrideOrderAreasButton; |
|
65 |
protected Combo statusDisplaySelectionCombo; |
|
66 |
protected Button allowOverrideStatusDisplayButton; |
|
67 |
protected Combo areaDisplaySelectionCombo; |
|
68 |
protected Button allowOverrideAreaDisplayButton; |
|
67 | 69 |
protected String commandHandlerString; |
68 | 70 |
protected String commandHandlerStringStatus; |
69 | 71 |
|
... | ... | |
73 | 75 |
Composite child ; |
74 | 76 |
protected boolean isAllowOverride; |
75 | 77 |
|
78 |
protected Button activateCheckButton; |
|
79 |
protected Button allowOverrideActivatedButton; |
|
80 |
|
|
81 |
protected Button activateRankButton; |
|
82 |
protected Button allowOverrideRankButton; |
|
83 |
|
|
76 | 84 |
@Override |
77 | 85 |
protected Control createContents(Composite parent) { |
78 | 86 |
getValues(); |
... | ... | |
88 | 96 |
GridData sepGrid = createTextGridData(); |
89 | 97 |
separator.setLayoutData(sepGrid); |
90 | 98 |
separator.setVisible(false); |
91 |
final Button activateCheckButton = new Button(activateComp, SWT.CHECK);
|
|
99 |
activateCheckButton = new Button(activateComp, SWT.CHECK); |
|
92 | 100 |
activateCheckButton.setText(Messages.ChecklistEditorGeneralPreference_enable); |
93 | 101 |
activateCheckButton.setSelection(isEditorActivated); |
94 | 102 |
activateCheckButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
107 | 115 |
|
108 | 116 |
} |
109 | 117 |
}); |
110 |
Button allowOverrideActivatedButton = createAllowOverrideButton(activateComp);
|
|
118 |
allowOverrideActivatedButton = createAllowOverrideButton(activateComp); |
|
111 | 119 |
if (isAdminPreference){ |
112 | 120 |
allowOverrideActivatedButton.setSelection(allowOverrideActivated); |
113 | 121 |
allowOverrideActivatedButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
142 | 150 |
separator.setLayoutData(sepGrid); |
143 | 151 |
|
144 | 152 |
|
145 |
final Button activateRankButton = new Button(child, SWT.CHECK);
|
|
153 |
activateRankButton = new Button(child, SWT.CHECK); |
|
146 | 154 |
activateRankButton.setText(Messages.ChecklistEditorGeneralPreference_show_rank); |
147 | 155 |
activateRankButton.setSelection(isShowRank); |
148 | 156 |
activateRankButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
152 | 160 |
isShowRank = activateRankButton.getSelection(); |
153 | 161 |
} |
154 | 162 |
}); |
155 |
Button allowOverrideRankButton = createAllowOverrideButton(child);
|
|
163 |
allowOverrideRankButton = createAllowOverrideButton(child); |
|
156 | 164 |
if (isAdminPreference){ |
157 | 165 |
allowOverrideRankButton.setSelection(allowOverrideRank); |
158 | 166 |
allowOverrideRankButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
221 | 229 |
// isSortByVocabularyOrder = sortNamedAreaByVocabularyOrder.getSelection(); |
222 | 230 |
// } |
223 | 231 |
// }); |
224 |
Button allowOverrideOrderAreasButton = createAllowOverrideButton(child);
|
|
232 |
allowOverrideOrderAreasButton = createAllowOverrideButton(child); |
|
225 | 233 |
if (isAdminPreference){ |
226 | 234 |
allowOverrideOrderAreasButton.setSelection(allowOverrideOrderAreas); |
227 | 235 |
allowOverrideOrderAreasButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
321 | 329 |
} |
322 | 330 |
} |
323 | 331 |
areaDisplaySelectionCombo.addSelectionListener(this); |
324 |
Button allowOverrideAreaDisplayButton = createAllowOverrideButton(child);
|
|
332 |
allowOverrideAreaDisplayButton = createAllowOverrideButton(child); |
|
325 | 333 |
if (isAdminPreference){ |
326 | 334 |
allowOverrideAreaDisplayButton.setSelection(allowOverrideAreaDisplay); |
327 | 335 |
allowOverrideAreaDisplayButton.addSelectionListener(new SelectionAdapter(){ |
... | ... | |
371 | 379 |
} |
372 | 380 |
|
373 | 381 |
statusDisplaySelectionCombo.addSelectionListener(this); |
374 |
Button allowOverrideStatusDisplayButton = createAllowOverrideButton(child);
|
|
382 |
allowOverrideStatusDisplayButton = createAllowOverrideButton(child); |
|
375 | 383 |
if (isAdminPreference){ |
376 | 384 |
allowOverrideStatusDisplayButton.setSelection(allowOverrideStatusDisplay); |
377 | 385 |
allowOverrideStatusDisplayButton.addSelectionListener(new SelectionAdapter(){ |
Also available in: Unified diff
ref #7849: add correct handling for restoreDefaults in DB preference pages