Revision c130c5fe
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/ChecklistEditorGeneralAdminPreference.java | ||
---|---|---|
220 | 220 |
|
221 | 221 |
@Override |
222 | 222 |
public boolean performOk() { |
223 |
if (this.distributionEditorPref == null){
|
|
223 |
if (!isValid()){
|
|
224 | 224 |
return true; |
225 | 225 |
} |
226 | 226 |
ICdmRepository controller = CdmStore.getCurrentApplicationConfiguration(); |
... | ... | |
309 | 309 |
} |
310 | 310 |
commandHandlerString = "eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardAdminHandler"; |
311 | 311 |
commandHandlerStringStatus = "eu.etaxonomy.taxeditor.store.open.OpenDistributionStatusWizardAdminHandler"; |
312 |
setValid(false); |
|
312 | 313 |
|
313 | 314 |
} |
314 | 315 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/ChecklistEditorGeneralPreference.java | ||
---|---|---|
294 | 294 |
label.setText("The CDM settings don't allow to set the preferences for using the distribution editor locally. If you need to make local settings, please ask an administrator."); |
295 | 295 |
|
296 | 296 |
} |
297 |
|
|
297 |
setValid(true); |
|
298 | 298 |
return composite; |
299 | 299 |
} |
300 | 300 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/menu/CdmPreferencePage.java | ||
---|---|---|
49 | 49 |
|
50 | 50 |
@Override |
51 | 51 |
public boolean performOk() { |
52 |
|
|
53 |
return super.performOk(); |
|
52 |
if (isValid()){ |
|
53 |
return super.performOk(); |
|
54 |
}return false; |
|
54 | 55 |
} |
55 | 56 |
|
56 | 57 |
@Override |
Also available in: Unified diff
ref #7849: do not save preferences if page was not edited