Project

General

Profile

Revision 3935afdf

ID3935afdf45ef9ddc44850fab61cf53ba79125643
Parent c80855f5
Child 240ff660

Added by Katja Luther over 1 year ago

fix #7645: get the correct values from db for specimen admin preference page

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/SpecimenAdminPreferences.java
36 36

  
37 37

  
38 38

  
39
    boolean isShowCollectingAreaInGeneralSection = false;
40
    boolean isDeterminationOnlyForFieldUnits = false;
41
    boolean isShowTaxonAssociation = false;
42
    boolean isShowLifeForm = false;
43
    boolean isUseLocalPreference = false;
39
    boolean isShowCollectingAreaInGeneralSection;
40
    boolean isDeterminationOnlyForFieldUnits;
41
    boolean isShowTaxonAssociation;
42
    boolean isShowLifeForm;
43
    boolean isUseLocalPreference;
44 44

  
45 45

  
46 46
    @Override
47 47
    protected Control createContents(Composite parent) {
48 48
        Composite composite = new Composite(parent, SWT.NULL);
49
        init();
49 50
        GridLayout gridLayout = new GridLayout();
50 51
        composite.setLayout(gridLayout);
51 52
        final Button showCollectingAreaInGeneralSectionButton = new Button(composite, SWT.CHECK);
......
166 167
            IPreferenceService service = controller.getPreferenceService();
167 168

  
168 169
            CdmPreference pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.ShowCollectingAreasInGeneralSection, Boolean.toString(this.isShowCollectingAreaInGeneralSection));
169
            pref.setAllowOverride(true);
170
            pref.setAllowOverride(isUseLocalPreference);
170 171
            service.set(pref);
171 172

  
172 173
            pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.DeterminationOnlyForFieldUnits, Boolean.toString(this.isDeterminationOnlyForFieldUnits));
173
            pref.setAllowOverride(true);
174
            pref.setAllowOverride(isUseLocalPreference);
174 175
            service.set(pref);
175 176

  
176 177
            pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.ShowTaxonAssociations, Boolean.toString(this.isShowTaxonAssociation));
177
            pref.setAllowOverride(true);
178
            pref.setAllowOverride(isUseLocalPreference);
178 179
            service.set(pref);
179 180

  
180 181
            pref = CdmPreference.NewDatabaseInstance(PreferencePredicate.ShowLifeForm, Boolean.toString(this.isShowLifeForm));
181
            pref.setAllowOverride(true);
182
            pref.setAllowOverride(isUseLocalPreference);
182 183
            service.set(pref);
183 184

  
184 185

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)