Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaRepresentationElement.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
25 | 25 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
26 | 26 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
27 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType; |
|
27 | 28 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
29 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
|
28 | 30 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
29 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType; |
|
30 | 31 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
31 | 32 |
|
32 | 33 |
/** |
... | ... | |
67 | 68 |
text_mimeType = formFactory.createTextWithLabelElement(element, "Mime Type", null, style); |
68 | 69 |
text_suffix = formFactory.createTextWithLabelElement(element, "Suffix", null, style); |
69 | 70 |
section_mediaRepresentationPart = (MediaRepresentationPartSection) formFactory.createEntityDetailSection(EntityDetailType.MEDIAREPRESENTATIONPART, getConversationHolder(), element, style); |
70 |
section_mediaRepresentationPart.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1));
|
|
71 |
section_mediaRepresentationPart.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
|
71 | 72 |
} |
72 | 73 |
|
73 | 74 |
/** {@inheritDoc} */ |
... | ... | |
125 | 126 |
StoreUtil.error(getClass(), e); |
126 | 127 |
} |
127 | 128 |
} |
128 |
|
|
129 |
|
|
130 |
} |
|
131 |
|
|
132 |
private String getMimeType(URI uri){ |
|
133 |
return null; |
|
134 | 129 |
} |
135 | 130 |
} |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)