Revision fa39cfe4
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailElement.java | ||
---|---|---|
76 | 76 |
combo_nomenclaturalCode.setSelection(entity.getNomenclaturalCode()); |
77 | 77 |
if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){ |
78 | 78 |
combo_nomenclaturalCode.setVisible(false); |
79 |
}
|
|
79 |
} |
|
80 | 80 |
} |
81 | 81 |
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_LSID)){ |
82 | 82 |
textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style); |
83 |
|
|
83 |
|
|
84 | 84 |
} |
85 |
|
|
86 |
|
|
85 |
|
|
86 |
|
|
87 | 87 |
} |
88 | 88 |
|
89 | 89 |
|
... | ... | |
91 | 91 |
section_name.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
92 | 92 |
addControl(section_name); |
93 | 93 |
addElement(section_name); |
94 |
section_author = formFactory.createAuthorshipDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
95 |
section_author.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
|
96 |
addControl(section_author); |
|
97 |
addElement(section_author); |
|
98 |
|
|
94 |
if (isAdvancedView || PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_AUTHORSHIP)){ |
|
95 |
section_author = formFactory.createAuthorshipDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
96 |
section_author.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
|
97 |
addControl(section_author); |
|
98 |
addElement(section_author); |
|
99 |
} |
|
99 | 100 |
//TODO RL |
100 |
if (isAdvancedView){ |
|
101 |
if (isAdvancedView || PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_HYBRID)){
|
|
101 | 102 |
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){ |
102 | 103 |
section_hybrid = formFactory.createHybridDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE); |
103 | 104 |
section_hybrid.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
104 | 105 |
addControl(section_hybrid); |
105 | 106 |
addElement(section_hybrid); |
106 | 107 |
} |
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 | 108 |
} |
117 | 109 |
|
118 | 110 |
|
Also available in: Unified diff
more changes for configurable name details view