Project

General

Profile

Download (18.1 KB) Statistics
| Branch: | Tag: | Revision:
1 f32ec72f Katja Luther
package eu.etaxonomy.taxeditor.preference;
2
3
4
import org.eclipse.swt.SWT;
5 9181d281 Katja Luther
import org.eclipse.swt.custom.CLabel;
6 f32ec72f Katja Luther
import org.eclipse.swt.events.SelectionAdapter;
7
import org.eclipse.swt.events.SelectionEvent;
8 9181d281 Katja Luther
import org.eclipse.swt.layout.GridData;
9 f32ec72f Katja Luther
import org.eclipse.swt.layout.GridLayout;
10
import org.eclipse.swt.widgets.Button;
11
import org.eclipse.swt.widgets.Composite;
12
import org.eclipse.swt.widgets.Control;
13 e5f892b4 Katja Luther
import org.eclipse.swt.widgets.Label;
14 f32ec72f Katja Luther
15 06699fe1 Katja Luther
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
16 f6c0ab3d Katja Luther
import eu.etaxonomy.taxeditor.l10n.Messages;
17 672874ab Patrick Plitzner
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
18 e5f892b4 Katja Luther
19 f32ec72f Katja Luther
20 672874ab Patrick Plitzner
public class NameDetailsViewConfiguration extends CdmPreferencePage {
21
22 9181d281 Katja Luther
    protected boolean isSimpleDetailsViewActivated;
23 e5f892b4 Katja Luther
	boolean isUseLocalSettings;
24 9181d281 Katja Luther
	protected NameDetailsConfigurator nameDetailsConfig;
25 59e7cc59 Katja Luther
    Composite localSettings ;
26 f32ec72f Katja Luther
27 6fa5c755 Katja Luther
28 9181d281 Katja Luther
    protected boolean isShowTaxon;
29
    protected boolean isShowNameApprobiation ;
30
    protected boolean isShowHybrid;
31
    protected boolean isShowNameRelationship;
32
    protected boolean isShowTypeDesignation;
33
    protected boolean isShowProtologue;
34
    protected boolean isShowNomenclaturalStatus;
35
    protected boolean isShowNomenclaturalRef;
36
    protected boolean isShowAuthorship;
37
    protected boolean isShowAuthorCache;
38
    protected boolean isShowEpithets;
39
    protected boolean isShowRank;
40
    protected boolean isShowAppendedPhrase;
41
    protected boolean isShowNameCache;
42
    protected boolean isShowNomenclaturalCode;
43
    protected boolean isShowLSID;
44
    protected boolean isSecEnabled;
45
    protected boolean isSecDetailsActivated;
46
47
    protected boolean isAllowOverride;
48
    private boolean isOverride;
49 6fa5c755 Katja Luther
50 f32ec72f Katja Luther
    @Override
51
    protected Control createContents(Composite parent) {
52 cd19940f Katja Luther
53 9181d281 Katja Luther
        if (isAllowOverride || isAdminPreference){
54 e5f892b4 Katja Luther
55 9181d281 Katja Luther
            final CLabel description = new CLabel(parent, SWT.NULL);
56
            description.setText(Messages.NameDetailsViewConfiguration_description);
57 59e7cc59 Katja Luther
58 9181d281 Katja Luther
            Composite title  = createComposite(parent);
59
            nameDetailsConfig = PreferencesUtil.getPreferredNameDetailsConfiguration(false);
60
            if (nameDetailsConfig == null){
61
                nameDetailsConfig = new NameDetailsConfigurator(false);
62
            }
63 59e7cc59 Katja Luther
64 9181d281 Katja Luther
            final Button activateCheckButton = new Button(title, SWT.CHECK);
65
            final Button allowLocalPreference = createAllowOverrideButton(title);
66
            Composite dbSettings  = new Composite(parent, SWT.NONE);
67 59e7cc59 Katja Luther
68 9181d281 Katja Luther
            activateCheckButton.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));
69 f6c0ab3d Katja Luther
            activateCheckButton.setText(Messages.NameDetailsViewConfiguration_activateSimpleDetailsView);
70 9181d281 Katja Luther
            isSimpleDetailsViewActivated = nameDetailsConfig.isSimpleDetailsViewActivated();
71 e5f892b4 Katja Luther
            activateCheckButton.setSelection(isSimpleDetailsViewActivated);
72
            activateCheckButton.addSelectionListener(new SelectionAdapter(){
73 9181d281 Katja Luther
                @Override
74
                public void widgetSelected(SelectionEvent e) {
75 fbd932cc Katja Luther
                    setApply(true);
76 9181d281 Katja Luther
                    isSimpleDetailsViewActivated = activateCheckButton.getSelection();
77
78
                    dbSettings.setEnabled(isSimpleDetailsViewActivated);
79
                    PreferencesUtil.recursiveSetEnabled(dbSettings, isSimpleDetailsViewActivated);
80
                 }
81 e5f892b4 Katja Luther
             });
82
83 9181d281 Katja Luther
            if (isAdminPreference){
84
                allowLocalPreference.setSelection(isAllowOverride);
85
            }else{
86
                allowLocalPreference.setSelection(isOverride);
87
            }
88
            allowLocalPreference.addSelectionListener(new SelectionAdapter(){
89
                @Override
90
                public void widgetSelected(SelectionEvent e) {
91 fbd932cc Katja Luther
                    setApply(true);
92 9181d281 Katja Luther
                    if (isAdminPreference){
93
                        isAllowOverride = allowLocalPreference.getSelection();
94
                    }else{
95
                        isOverride = allowLocalPreference.getSelection();
96
                    }
97 e5f892b4 Katja Luther
98 9181d281 Katja Luther
                }
99
            });
100
101
            dbSettings.setLayout(new GridLayout());
102
            dbSettings.setEnabled(isSimpleDetailsViewActivated);
103
104
105
            Label separator= new Label(dbSettings, SWT.HORIZONTAL | SWT.SEPARATOR);
106
            separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
107
            final Button showTaxon = new Button(dbSettings, SWT.CHECK);
108 f6c0ab3d Katja Luther
            showTaxon.setText(Messages.NameDetailsViewComposite_Show_Taxon);
109 9181d281 Katja Luther
            isShowTaxon = nameDetailsConfig.isTaxonSectionActivated();
110 e5f892b4 Katja Luther
            showTaxon.setSelection(isShowTaxon);
111
            showTaxon.addSelectionListener(new SelectionAdapter(){
112
                 @Override
113
                 public void widgetSelected(SelectionEvent e) {
114 fbd932cc Katja Luther
                     setApply(true);
115 6fa5c755 Katja Luther
                     isShowTaxon = showTaxon.getSelection();
116
117
                  }
118
             });
119
120 9181d281 Katja Luther
            final Button showSecDetail = new Button(dbSettings, SWT.CHECK);
121 6fa5c755 Katja Luther
            showSecDetail.setText(Messages.NameDetailsViewComposite_Show_SecDetail);
122 9181d281 Katja Luther
            isSecDetailsActivated = nameDetailsConfig.isSecDetailsActivated();
123 6fa5c755 Katja Luther
            showSecDetail.setSelection(isSecDetailsActivated);
124
            showSecDetail.addSelectionListener(new SelectionAdapter(){
125
                 @Override
126
                 public void widgetSelected(SelectionEvent e) {
127 fbd932cc Katja Luther
                     setApply(true);
128 6fa5c755 Katja Luther
                     isSecDetailsActivated = showSecDetail.getSelection();
129
130
                  }
131
             });
132
133 9181d281 Katja Luther
            final Button secEnabled = new Button(dbSettings, SWT.CHECK);
134 6fa5c755 Katja Luther
            secEnabled.setText(Messages.NameDetailsViewComposite_SecEnabled);
135 9181d281 Katja Luther
            isSecEnabled = nameDetailsConfig.isSecEnabled();
136 6fa5c755 Katja Luther
            secEnabled.setSelection(isSecEnabled);
137
            secEnabled.addSelectionListener(new SelectionAdapter(){
138
                 @Override
139
                 public void widgetSelected(SelectionEvent e) {
140 fbd932cc Katja Luther
                     setApply(true);
141 6fa5c755 Katja Luther
                     isSecEnabled = secEnabled.getSelection();
142
143 e5f892b4 Katja Luther
                  }
144
             });
145
146 9181d281 Katja Luther
147
            final Button showLsid = new Button(dbSettings, SWT.CHECK);
148 f6c0ab3d Katja Luther
            showLsid.setText(Messages.NameDetailsViewComposite_Show_LSID);
149 9181d281 Katja Luther
            isShowLSID = nameDetailsConfig.isLSIDActivated();
150 e5f892b4 Katja Luther
            showLsid.setSelection(isShowLSID);
151
            showLsid.addSelectionListener(new SelectionAdapter(){
152
                 @Override
153
                 public void widgetSelected(SelectionEvent e) {
154 fbd932cc Katja Luther
                     setApply(true);
155 6fa5c755 Katja Luther
                     isShowLSID = showLsid.getSelection();
156
157 e5f892b4 Katja Luther
                  }
158
             });
159
160 9181d281 Katja Luther
            final Button showNomenclaturalCode = new Button(dbSettings, SWT.CHECK);
161 f6c0ab3d Katja Luther
            showNomenclaturalCode.setText(Messages.NameDetailsViewComposite_Show_NomenclaturalCode);
162 9181d281 Katja Luther
            isShowNomenclaturalCode = nameDetailsConfig.isNomenclaturalCodeActived();
163 e5f892b4 Katja Luther
            showNomenclaturalCode.setSelection(isShowNomenclaturalCode);
164
            showNomenclaturalCode.addSelectionListener(new SelectionAdapter(){
165
                 @Override
166
                 public void widgetSelected(SelectionEvent e) {
167 fbd932cc Katja Luther
                     setApply(true);
168 6fa5c755 Katja Luther
                     isShowNomenclaturalCode = showNomenclaturalCode.getSelection();
169
170 e5f892b4 Katja Luther
                  }
171
             });
172
173 9181d281 Katja Luther
            final Button showNameCache = new Button(dbSettings, SWT.CHECK);
174 f6c0ab3d Katja Luther
            showNameCache.setText(Messages.NameDetailsViewComposite_Show_NameCache);
175 9181d281 Katja Luther
            isShowNameCache = nameDetailsConfig.isNameCacheActivated();
176
            showNameCache.setSelection(isShowNameCache);
177 e5f892b4 Katja Luther
            showNameCache.addSelectionListener(new SelectionAdapter(){
178
                 @Override
179
                 public void widgetSelected(SelectionEvent e) {
180 fbd932cc Katja Luther
                     setApply(true);
181
                     isShowNameCache = showNameCache.getSelection();
182 e5f892b4 Katja Luther
                  }
183
             });
184 9181d281 Katja Luther
            final Button showAppendedPhrase = new Button(dbSettings, SWT.CHECK);
185
            isShowAppendedPhrase= nameDetailsConfig.isAppendedPhraseActivated();
186 f6c0ab3d Katja Luther
            showAppendedPhrase.setText(Messages.NameDetailsViewComposite_Show_AppendedPhrase);
187 e5f892b4 Katja Luther
            showAppendedPhrase.setSelection(isShowAppendedPhrase);
188
            showAppendedPhrase.addSelectionListener(new SelectionAdapter(){
189
                 @Override
190
                 public void widgetSelected(SelectionEvent e) {
191 fbd932cc Katja Luther
                     setApply(true);
192
                     isShowAppendedPhrase = showAppendedPhrase.getSelection();
193 e5f892b4 Katja Luther
                  }
194
             });
195
196 9181d281 Katja Luther
            final Button showRank = new Button(dbSettings, SWT.CHECK);
197
            isShowRank = nameDetailsConfig.isRankActivated();
198 f6c0ab3d Katja Luther
            showRank.setText(Messages.NameDetailsViewComposite_Show_Rank);
199 e5f892b4 Katja Luther
            showRank.setSelection(isShowRank);
200
            showRank.addSelectionListener(new SelectionAdapter(){
201
                 @Override
202
                 public void widgetSelected(SelectionEvent e) {
203 fbd932cc Katja Luther
                     setApply(true);
204 6fa5c755 Katja Luther
                     isShowRank = showRank.getSelection();
205 e5f892b4 Katja Luther
                  }
206
             });
207 9181d281 Katja Luther
            final Button showEpithets = new Button(dbSettings, SWT.CHECK);
208
            isShowEpithets = nameDetailsConfig.isAtomisedEpithetsActivated();
209 f6c0ab3d Katja Luther
            showEpithets.setText(Messages.NameDetailsViewComposite_Show_AtomisedEpithets);
210 e5f892b4 Katja Luther
            showEpithets.setSelection(isShowEpithets);
211
            showEpithets.addSelectionListener(new SelectionAdapter(){
212
                 @Override
213
                 public void widgetSelected(SelectionEvent e) {
214 fbd932cc Katja Luther
                     setApply(true);
215 6fa5c755 Katja Luther
                     isShowEpithets = showEpithets.getSelection();
216 e5f892b4 Katja Luther
                  }
217
             });
218 f6c0ab3d Katja Luther
219 9181d281 Katja Luther
            final Button showAuthorCache = new Button(dbSettings, SWT.CHECK);
220
            isShowAuthorCache = nameDetailsConfig.isAuthorCacheActivated();
221 f6c0ab3d Katja Luther
            showAuthorCache.setText(Messages.NameDetailsViewComposite_Show_AuthorCache);
222
            showAuthorCache.setSelection(isShowAuthorCache);
223
            showAuthorCache.addSelectionListener(new SelectionAdapter(){
224
                 @Override
225
                 public void widgetSelected(SelectionEvent e) {
226 fbd932cc Katja Luther
                     setApply(true);
227 6fa5c755 Katja Luther
                     isShowAuthorCache = showAuthorCache.getSelection();
228 f6c0ab3d Katja Luther
                  }
229
             });
230
231 9181d281 Katja Luther
            final Button showAuthorship = new Button(dbSettings, SWT.CHECK);
232
            isShowAuthorship = nameDetailsConfig.isAuthorshipSectionActivated();
233 f6c0ab3d Katja Luther
            showAuthorship.setText(Messages.NameDetailsViewComposite_Show_Author);
234 e5f892b4 Katja Luther
            showAuthorship.setSelection(isShowAuthorship);
235
            showAuthorship.addSelectionListener(new SelectionAdapter(){
236
                 @Override
237
                 public void widgetSelected(SelectionEvent e) {
238 fbd932cc Katja Luther
                     setApply(true);
239 6fa5c755 Katja Luther
                     isShowAuthorship = showAuthorship.getSelection();
240 e5f892b4 Katja Luther
                  }
241
             });
242
243 9181d281 Katja Luther
            final Button showNomenclaturalRef = new Button(dbSettings, SWT.CHECK);
244
            isShowNomenclaturalRef = nameDetailsConfig.isNomenclaturalReferenceSectionActivated();
245 f6c0ab3d Katja Luther
            showNomenclaturalRef.setText(Messages.NameDetailsViewComposite_Show_NomenclaturalReference);
246 e5f892b4 Katja Luther
            showNomenclaturalRef.setSelection(isShowNomenclaturalRef);
247
            showNomenclaturalRef.addSelectionListener(new SelectionAdapter(){
248
                 @Override
249
                 public void widgetSelected(SelectionEvent e) {
250 fbd932cc Katja Luther
                     setApply(true);
251 6fa5c755 Katja Luther
                     isShowNomenclaturalRef = showNomenclaturalRef.getSelection();
252 e5f892b4 Katja Luther
                  }
253
             });
254
255 9181d281 Katja Luther
            final Button showNomenclaturalStatus = new Button(dbSettings, SWT.CHECK);
256
            isShowNomenclaturalStatus = nameDetailsConfig.isNomenclaturalStatusSectionActivated();
257 f6c0ab3d Katja Luther
            showNomenclaturalStatus.setText(Messages.NameDetailsViewComposite_Show_NomenclaturalStatus);
258 e5f892b4 Katja Luther
            showNomenclaturalStatus.setSelection(isShowNomenclaturalStatus);
259
            showNomenclaturalStatus.addSelectionListener(new SelectionAdapter(){
260
                 @Override
261
                 public void widgetSelected(SelectionEvent e) {
262 fbd932cc Katja Luther
                     setApply(true);
263 6fa5c755 Katja Luther
                     isShowNomenclaturalStatus = showNomenclaturalStatus.getSelection();
264 e5f892b4 Katja Luther
                  }
265
             });
266
267 9181d281 Katja Luther
            final Button showProtologue = new Button(dbSettings, SWT.CHECK);
268
            isShowProtologue = nameDetailsConfig.isProtologueActivated();
269 f6c0ab3d Katja Luther
            showProtologue.setText(Messages.NameDetailsViewComposite_Show_Protologue);
270 e5f892b4 Katja Luther
            showProtologue.setSelection(isShowProtologue);
271
            showProtologue.addSelectionListener(new SelectionAdapter(){
272
                 @Override
273
                 public void widgetSelected(SelectionEvent e) {
274 fbd932cc Katja Luther
                     setApply(true);
275 6fa5c755 Katja Luther
                     isShowProtologue = showProtologue.getSelection();
276 e5f892b4 Katja Luther
                  }
277
             });
278
279 9181d281 Katja Luther
            final Button showTypeDesignation = new Button(dbSettings, SWT.CHECK);
280
            isShowTypeDesignation = nameDetailsConfig.isTypeDesignationSectionActivated();
281 f6c0ab3d Katja Luther
            showTypeDesignation.setText(Messages.NameDetailsViewComposite_Show_TypeDesignation);
282 e5f892b4 Katja Luther
            showTypeDesignation.setSelection(isShowTypeDesignation);
283
            showTypeDesignation.addSelectionListener(new SelectionAdapter(){
284
                 @Override
285
                 public void widgetSelected(SelectionEvent e) {
286 fbd932cc Katja Luther
                     setApply(true);
287 6fa5c755 Katja Luther
                     isShowTypeDesignation = showTypeDesignation.getSelection();
288 e5f892b4 Katja Luther
                  }
289
             });
290
291
292 9181d281 Katja Luther
            final Button showNameRelationship = new Button(dbSettings, SWT.CHECK);
293
            isShowNameRelationship = nameDetailsConfig.isNameRelationsSectionActivated();
294 f6c0ab3d Katja Luther
            showNameRelationship.setText(Messages.NameDetailsViewComposite_Show_Namerelationships);
295 e5f892b4 Katja Luther
            showNameRelationship.setSelection(isShowNameRelationship);
296
            showNameRelationship.addSelectionListener(new SelectionAdapter(){
297
                 @Override
298
                 public void widgetSelected(SelectionEvent e) {
299 fbd932cc Katja Luther
                     setApply(true);
300 6fa5c755 Katja Luther
                     isShowNameRelationship = showNameRelationship.getSelection();
301 e5f892b4 Katja Luther
                  }
302
             });
303
304 9181d281 Katja Luther
            final Button showHybrid = new Button(dbSettings, SWT.CHECK);
305
            isShowHybrid = nameDetailsConfig.isHybridActivated();
306 f6c0ab3d Katja Luther
            showHybrid.setText(Messages.NameDetailsViewComposite_Show_Hybrid);
307 e5f892b4 Katja Luther
            showHybrid.setSelection(isShowHybrid);
308
            showHybrid.addSelectionListener(new SelectionAdapter(){
309
                 @Override
310
                 public void widgetSelected(SelectionEvent e) {
311 fbd932cc Katja Luther
                     setApply(true);
312 6fa5c755 Katja Luther
                     isShowHybrid = showHybrid.getSelection();
313 e5f892b4 Katja Luther
                  }
314
             });
315 9181d281 Katja Luther
            final Button showNameApprobiation = new Button(dbSettings, SWT.CHECK);
316
            isShowNameApprobiation = nameDetailsConfig.isNameApprobiationActivated();
317 f6c0ab3d Katja Luther
            showNameApprobiation.setText(Messages.NameDetailsViewComposite_Show_NameApprobiation);
318 e5f892b4 Katja Luther
            showNameApprobiation.setSelection(isShowNameApprobiation);
319
            showNameApprobiation.addSelectionListener(new SelectionAdapter(){
320
                 @Override
321
                 public void widgetSelected(SelectionEvent e) {
322 fbd932cc Katja Luther
                     setApply(true);
323 9181d281 Katja Luther
                     isShowNameApprobiation = showNameApprobiation.getSelection();
324 e5f892b4 Katja Luther
                  }
325
             });
326 9181d281 Katja Luther
            PreferencesUtil.recursiveSetEnabled(dbSettings, isSimpleDetailsViewActivated);
327 f32ec72f Katja Luther
        }else{
328 9181d281 Katja Luther
            final CLabel description = new CLabel(parent, SWT.NULL);
329
            description.setText(Messages.NameDetailsViewConfiguration_description_not_available);
330 f32ec72f Katja Luther
        }
331 9181d281 Katja Luther
332
333
334
335
        return parent;
336 f32ec72f Katja Luther
	}
337
338 6fa5c755 Katja Luther
    @Override
339
    public boolean performOk() {
340 69e82edd Katja Luther
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_TAXON, isShowTaxon);
341
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_SEC_DETAILS, isSecDetailsActivated);
342
        PreferencesUtil.setBooleanValue(IPreferenceKeys.DISABLE_SEC, isSecEnabled);
343
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION, isSimpleDetailsViewActivated);
344
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION, isShowNameApprobiation);
345
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_HYBRID, isShowHybrid);
346
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP, isShowNameRelationship);
347
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION, isShowTypeDesignation);
348
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE, isShowProtologue);
349
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_STATUS, isShowNomenclaturalStatus);
350
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE, isShowNomenclaturalRef);
351
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_AUTHORSHIP, isShowAuthorship);
352
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_AUTHORSHIP_CACHE, isShowAuthorCache);
353
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_ATOMISED_EPITHETS, isShowEpithets);
354
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_RANK, isShowRank);
355
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_APPENDED_PHRASE, isShowAppendedPhrase);
356
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAMECACHE, isShowNameCache);
357
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_CODE, isShowNomenclaturalCode);
358
        PreferencesUtil.setBooleanValue(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_LSID, isShowLSID);
359 9181d281 Katja Luther
360
        PreferencesUtil.setBooleanValue(IPreferenceKeys.OVERRIDE_NAME_DETAILS, isOverride);
361 6fa5c755 Katja Luther
        return true;
362
363
    }
364
365 9181d281 Katja Luther
    @Override
366
    public void init(){
367 c11a2278 Katja Luther
        CdmPreference nameDetailsPref = PreferencesUtil.getPreferenceFromDB(EditorPreferencePredicate.NameDetailsView);
368 9181d281 Katja Luther
        isAdminPreference = false;
369
        isAllowOverride = false;
370
        if (nameDetailsPref != null){
371
            isAllowOverride = nameDetailsPref.isAllowOverride();
372
        }
373
        isOverride = PreferencesUtil.getBooleanValue(IPreferenceKeys.OVERRIDE_NAME_DETAILS);
374
    }
375
376 f32ec72f Katja Luther
}