Project

General

Profile

Revision b30beda3

IDb30beda380d3ea4af4fe54c592f6d633b2d0af2f
Parent f32ec72f
Child 2a495461

Added by Katja Luther about 5 years ago

minor changes for name details view configuration

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java
382 382
                .createNonViralNameDetailSection(getConversationHolder(), parent, this, true,
383 383
                        ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
384 384
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
385
        if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE)){
386
            NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
387
            		ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
388
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
389
            addPart(referenceDetailSection);
385
        if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE))){       
386
	            NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this,
387
	            		ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
388
	            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
389
	            addPart(referenceDetailSection);
390
        	
390 391
        }
391
        if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_STATUS)){
392
            NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
393
            		ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
394
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
395

  
396
            addPart(nomenclaturalStatusSection);
397
            
392
        if ( !PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_STATUS))){
393
	            NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
394
	            		ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
395
	            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
396
	            addPart(nomenclaturalStatusSection);
398 397
        }
399
        //TODO RL
400 398
        if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)  ){
401
        	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE)){
399
        	if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE))){
402 400
        		ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
403 401
        		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
404 402
        		addPart(protologSection);
405 403
        	}
406 404
        	
407
        	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION)){
405
        	if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) &&  PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION))){
408 406
        		TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
409 407
        		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
410 408
        		addPart(typeDesignationSection);
411 409
        	}
412 410
        	
413
        	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP)){
411
        	if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP))){
414 412
        		NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
415 413
        		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
416 414
        		addPart(nameRelationshipSection);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)