Revision 32744832
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; |
|
21 | 20 |
import eu.etaxonomy.cdm.model.reference.Reference; |
22 | 21 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
23 | 22 |
import eu.etaxonomy.cdm.model.reference.ReferenceType; |
24 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
25 |
import eu.etaxonomy.taxeditor.preference.Resources; |
|
26 | 23 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
27 | 24 |
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement; |
28 | 25 |
import eu.etaxonomy.taxeditor.ui.element.CacheRelevance; |
... | ... | |
32 | 29 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
33 | 30 |
import eu.etaxonomy.taxeditor.ui.element.IErrorIntolerableElement; |
34 | 31 |
import eu.etaxonomy.taxeditor.ui.element.IExceptionHandler; |
35 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
|
36 | 32 |
import eu.etaxonomy.taxeditor.ui.element.LsidWithExceptionLabelElement; |
37 | 33 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
38 | 34 |
import eu.etaxonomy.taxeditor.ui.element.ToggleableTextElement; |
... | ... | |
174 | 170 |
|
175 | 171 |
createUri(this, entity, SWT.NULL); |
176 | 172 |
|
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."); |
|
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.");
|
|
182 | 178 |
|
183 | 179 |
if(referenceType != null && (!referenceType.equals(ReferenceType.Journal) && !referenceType.equals(ReferenceType.PrintSeries) && !referenceType.equals(ReferenceType.PersonalCommunication))) { |
184 | 180 |
text_doi = formFactory.createDoiWithLabelElement(formElement, "DOI", entity.getDoi(), style); |
Also available in: Unified diff
remove some not finished code