Revision f15b2642
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/ChecklistEditorGeneralPreference.java | ||
---|---|---|
46 | 46 |
boolean isShowTitle; |
47 | 47 |
String displayString; |
48 | 48 |
Composite child ; |
49 |
CdmPreference pref = null; |
|
49 | 50 |
|
50 | 51 |
@Override |
51 | 52 |
protected Control createContents(Composite parent) { |
52 | 53 |
|
53 | 54 |
Composite composite = new Composite(parent, SWT.NULL); |
54 | 55 |
composite.setLayout(new GridLayout()); |
55 |
CdmPreference pref = PreferencesUtil.getPreferenceFromDB(PreferencePredicate.DistributionEditorActivated);
|
|
56 |
pref = PreferencesUtil.getPreferenceFromDB(PreferencePredicate.DistributionEditorActivated); |
|
56 | 57 |
if (pref != null){ |
57 | 58 |
isEditorActivated = Boolean.valueOf(pref.getValue()); |
58 | 59 |
allowOverride = pref.isAllowOverride(); |
... | ... | |
236 | 237 |
|
237 | 238 |
@Override |
238 | 239 |
public boolean performOk() { |
240 |
if (pref == null){ |
|
241 |
return true; |
|
242 |
} |
|
239 | 243 |
ICdmRepository controller = CdmStore.getCurrentApplicationConfiguration(); |
240 | 244 |
if (controller == null){ |
241 | 245 |
return false; |
Also available in: Unified diff
do not save cdm preference which are not changed