Project

General

Profile

« Previous | Next » 

Revision a9316ea5

Added by Patrick Plitzner over 5 years ago

code cleaning

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/SpecimenAdminPreferences.java
39 39
    public SpecimenAdminPreferences() {
40 40
    }
41 41

  
42

  
43 42
    boolean isShowSpecimenRelatedIssues;
44 43
    boolean isShowCollectingAreaInGeneralSection;
45 44
    boolean isDeterminationOnlyForFieldUnits;
......
54 53

  
55 54
        getValues();
56 55

  
57

  
58 56
        final Button showSpecimenButton = new Button(parent, SWT.CHECK);
59 57

  
60 58
        showSpecimenButton.setText(Messages.DatabasePreferncesPage_Show_Specimen);
......
156 154
        if(!CdmStore.isActive()){
157 155
            return;
158 156
        }
159

  
160

  
161

  
162 157
    }
163 158

  
164 159
    private void getValues(){
......
174 169
                this.isShowSpecimenRelatedIssues = true;
175 170
            }
176 171

  
177

  
178 172
            key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowCollectingAreasInGeneralSection);
179 173
            CdmPreference isShowCollectingAreaInGeneralSectionPref = service.find(key);
180 174
            if (isShowCollectingAreaInGeneralSectionPref != null){
......
190 184
            CdmPreference isShowTaxonAssociationPref = service.find(key);
191 185
            if (isShowTaxonAssociationPref != null){
192 186
                this.isShowTaxonAssociation = Boolean.valueOf(isShowTaxonAssociationPref.getValue());
193
               // isUseLocalPreference = isShowTaxonAssociationPref.isAllowOverride();
194 187
            }
195 188

  
196 189
            key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.ShowLifeForm);
......
199 192
                this.isShowLifeForm = Boolean.valueOf(isShowLifeFormPref.getValue());
200 193
            }
201 194

  
202

  
203

  
204

  
205 195
        }
206 196
    }
207 197

  

Also available in: Unified diff