Project

General

Profile

« Previous | Next » 

Revision 76b874f8

Added by Katja Luther over 7 years ago

fix #6050: add the possibility to configure which fields should be displayed in name details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java
79 79
	protected void createControls(ICdmFormElement formElement, NonViralName nonViralName, int style) {
80 80

  
81 81
	    if (isAdvancedView){
82
	        toggleable_cache = formFactory.createToggleableTextField(this, "Name Cache", nonViralName.getNameCache(), nonViralName.isProtectedNameCache(), style);
82
	    	toggleable_cache = formFactory.createToggleableTextField(this, "Name Cache", nonViralName.getNameCache(), nonViralName.isProtectedNameCache(), style);
83
	    }else{
84
	    	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAMECACHE)){
85
	    		toggleable_cache = formFactory.createToggleableTextField(this, "Name Cache", nonViralName.getNameCache(), nonViralName.isProtectedNameCache(), style);
86
        	}
83 87
	    }
84 88
		combo_rank = formFactory.createDefinedTermComboElement(TermType.Rank, this, "Rank", nonViralName.getRank(), style);
85

  
86
		createGenusOrUninomialControls(this, nonViralName, style);
87
		createInfragenerericEpithetControls(this, nonViralName, style);
88
		createSpecificEpithetControls(this, nonViralName, style);
89
		createInfraSpecificEpithetControls(this, nonViralName, style);
90
		createSpecificNameParts(this, nonViralName, style);
89
		if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_ATOMISED_EPITHETS)){
90
			createGenusOrUninomialControls(this, nonViralName, style);
91
			createInfragenerericEpithetControls(this, nonViralName, style);
92
			createSpecificEpithetControls(this, nonViralName, style);
93
			createInfraSpecificEpithetControls(this, nonViralName, style);
94
			createSpecificNameParts(this, nonViralName, style);
95
		}
91 96
		if (isAdvancedView){
92 97
		    //createSpecificNameParts(this, nonViralName, style);
93 98
			text_appendedPhrase = formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
99
		}else{
100
			if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_APPENDED_PHRASE)){
101
				text_appendedPhrase = formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
102
        	}
94 103
		}
95 104
	}
96 105

  

Also available in: Unified diff