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/NonViralNameDetailElement.java
64 64
                toggleable_cache.setVisible(false);
65 65
                combo_nomenclaturalCode.setVisible(false);
66 66
            }
67
        }else{
68
        	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_CACHE)){
69
        		toggleable_cache = formFactory.createToggleableTextField(formElement, "Cache", entity.getTitleCache(), entity.isProtectedTitleCache() || entity.isProtectedFullTitleCache(), style);
70
                if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
71
                    toggleable_cache.setVisible(false);
72
                }
73
        	}
74
        	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_CODE)){
75
        		combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style);
76
        		combo_nomenclaturalCode.setSelection(entity.getNomenclaturalCode());
77
        		 if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
78
        			  combo_nomenclaturalCode.setVisible(false);
79
                 } 
80
        	}
81
        	if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_LSID)){
82
        		textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style);
83
        		
84
        	}
85
                       
86
        	
67 87
        }
68 88

  
69 89

  
......
84 104
    	        addControl(section_hybrid);
85 105
    	        addElement(section_hybrid);
86 106
    	    }
87
	    }
107
    	 }else{
108
    		 if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){
109
    			 if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_HYBRID)){
110
	     	        section_hybrid = formFactory.createHybridDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE);
111
	     	        section_hybrid.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
112
	     	        addControl(section_hybrid);
113
	     	        addElement(section_hybrid);
114
    			 }
115
     	    }
116
    	 }
88 117

  
89 118

  
90 119
    }

Also available in: Unified diff