Revision ec4a9eb1
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import eu.etaxonomy.cdm.model.agent.Institution; |
19 | 19 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
20 |
import eu.etaxonomy.cdm.model.description.DescriptionElementSource; |
|
20 | 21 |
import eu.etaxonomy.cdm.model.reference.Reference; |
21 | 22 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
22 | 23 |
import eu.etaxonomy.cdm.model.reference.ReferenceType; |
24 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
25 |
import eu.etaxonomy.taxeditor.preference.Resources; |
|
23 | 26 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
24 | 27 |
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement; |
25 | 28 |
import eu.etaxonomy.taxeditor.ui.element.CacheRelevance; |
... | ... | |
29 | 32 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
30 | 33 |
import eu.etaxonomy.taxeditor.ui.element.IErrorIntolerableElement; |
31 | 34 |
import eu.etaxonomy.taxeditor.ui.element.IExceptionHandler; |
35 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
|
32 | 36 |
import eu.etaxonomy.taxeditor.ui.element.LsidWithExceptionLabelElement; |
33 | 37 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
34 | 38 |
import eu.etaxonomy.taxeditor.ui.element.ToggleableTextElement; |
... | ... | |
170 | 174 |
|
171 | 175 |
createUri(this, entity, SWT.NULL); |
172 | 176 |
|
173 |
// externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
|
|
174 |
// externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3));
|
|
175 |
// externalLinks.setEntity(entity);
|
|
176 |
// externalLinks.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT));
|
|
177 |
// externalLinks.setEmptySectionString("No links yet.");
|
|
177 |
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName())); |
|
178 |
externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3)); |
|
179 |
externalLinks.setEntity(entity); |
|
180 |
externalLinks.setFont(AbstractUtility.getFont(Resources.COLOR_FONT_DEFAULT)); |
|
181 |
externalLinks.setEmptySectionString("No links yet."); |
|
178 | 182 |
|
179 | 183 |
if(referenceType != null && (!referenceType.equals(ReferenceType.Journal) && !referenceType.equals(ReferenceType.PrintSeries) && !referenceType.equals(ReferenceType.PersonalCommunication))) { |
180 | 184 |
text_doi = formFactory.createDoiWithLabelElement(formElement, "DOI", entity.getDoi(), style); |
... | ... | |
205 | 209 |
super.updateContent(); |
206 | 210 |
|
207 | 211 |
// enable elements according to state of cache protection |
208 |
toggleable_cache.setEnabled(getEntity().isProtectedTitleCache()); |
|
209 |
toggleableAbbrevCache.setEnabled(getEntity().isProtectedAbbrevTitleCache()); |
|
212 |
toggleable_cache.setCacheEnabled(getEntity().isProtectedTitleCache());
|
|
213 |
toggleableAbbrevCache.setCacheEnabled(getEntity().isProtectedAbbrevTitleCache());
|
|
210 | 214 |
} |
211 | 215 |
|
212 | 216 |
/** |
Also available in: Unified diff
ref #9287: adapt all toggleable text fields to enableCache