Project

General

Profile

« Previous | Next » 

Revision 2b01f647

Added by Katja Luther over 6 years ago

move name approbiation behind lsid in name details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/NameDetailsViewComposite.java
46 46
    boolean isShowNameRelationship;
47 47
    boolean isShowHybrid;
48 48
    Composite child;
49
	private boolean isShowNameApprobiation;
49 50

  
50 51
    public NameDetailsViewComposite(Composite parent, int style, NameDetailsConfigurator config){
51 52

  
......
262 263

  
263 264
             }
264 265
        });
266
       final Button showNameApprobiation = new Button(child, SWT.CHECK);
267
       isShowNameApprobiation = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION);
268
       showNameApprobiation.setText("Show name approbiation (for bacterial names)");
269
       showNameApprobiation.setSelection(isShowNameApprobiation);
270
       showNameApprobiation.addSelectionListener(new SelectionAdapter(){
271
            @Override
272
            public void widgetSelected(SelectionEvent e) {
273
            	isShowNameApprobiation = showNameApprobiation.getSelection();
274

  
275
             }
276
        });
277
       
265 278
       this.redraw();
266 279

  
267 280
       if(isSimpleDetailsViewActivated){
......
283 296
      config.setAtomisedEpithetsActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_ATOMISED_EPITHETS));
284 297
      config.setAuthorshipSectionActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_AUTHORSHIP));
285 298
      config.setLSIDActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_LSID));
299
      config.setNameApprobiationActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION));
286 300
      config.setNameCacheActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_CACHE));
287 301
      config.setNameRelationsSectionActivated(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP));
288 302
      config.setNomenclaturalCodeActived(doGetPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_CODE));

Also available in: Unified diff