-
- toggleable_cache = formFactory.createToggleableTextField(this, "Name Cache", nonViralName.getNameCache(), nonViralName.isProtectedNameCache(), style);
-
- combo_rank = formFactory.createTermComboElement(Rank.class, this, "Rank", nonViralName.getRank(), style);
-
- createGenusOrUninomialControls(this, nonViralName, style);
- createInfragenerericEpithetControls(this, nonViralName, style);
- createSpecificEpithetControls(this, nonViralName, style);
- createInfraSpecificEpithetControls(this, nonViralName, style);
-
- createSpecificNameParts(this, nonViralName, style);
-
- text_appendedPhrase = formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
-
+
+ if (isAdvancedView){
+ toggleable_cache = formFactory.createToggleableTextField(this, "Name Cache", nonViralName.getNameCache(), nonViralName.isProtectedNameCache(), style);
+ combo_rank = formFactory.createDefinedTermComboElement(TermType.Rank, this, "Rank", nonViralName.getRank(), style);
+ createGenusOrUninomialControls(this, nonViralName, style);
+ createInfragenerericEpithetControls(this, nonViralName, style);
+ createSpecificEpithetControls(this, nonViralName, style);
+ createInfraSpecificEpithetControls(this, nonViralName, style);
+ createSpecificNameParts(this, nonViralName, style);
+ text_appendedPhrase = formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
+ }else{
+ if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAMECACHE)){
+ toggleable_cache = formFactory.createToggleableTextField(this, "Name Cache", nonViralName.getNameCache(), nonViralName.isProtectedNameCache(), style);
+ }
+
+ if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_RANK)){
+ combo_rank = formFactory.createDefinedTermComboElement(TermType.Rank, this, "Rank", nonViralName.getRank(), style);
+ }
+
+ if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_ATOMISED_EPITHETS)){
+ createGenusOrUninomialControls(this, nonViralName, style);
+ createInfragenerericEpithetControls(this, nonViralName, style);
+ createSpecificEpithetControls(this, nonViralName, style);
+ createInfraSpecificEpithetControls(this, nonViralName, style);
+ createSpecificNameParts(this, nonViralName, style);
+ }
+ if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_APPENDED_PHRASE)){
+ text_appendedPhrase = formFactory.createTextWithLabelElement(formElement, "Appended Phrase", nonViralName.getAppendedPhrase(), style);
+ }
+ }
+