Revision 127f0e03
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.ui.section.description; |
11 | 11 |
|
12 |
import org.eclipse.jface.action.ToolBarManager; |
|
12 | 13 |
import org.eclipse.jface.viewers.ISelectionProvider; |
14 |
import org.eclipse.swt.SWT; |
|
15 |
import org.eclipse.swt.widgets.Control; |
|
13 | 16 |
import org.eclipse.ui.forms.widgets.ExpandableComposite; |
14 | 17 |
|
15 | 18 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
... | ... | |
19 | 22 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
20 | 23 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
21 | 24 |
import eu.etaxonomy.taxeditor.ui.section.media.MediaMetaElement; |
25 |
import eu.etaxonomy.taxeditor.ui.section.media.MediaViewSwitch; |
|
22 | 26 |
|
23 | 27 |
/** |
24 | 28 |
* <p>MediaDetailsSection class.</p> |
... | ... | |
59 | 63 |
protected AbstractCdmDetailElement<Media> createCdmDetailElement(AbstractCdmDetailSection<Media> parentElement, int style) { |
60 | 64 |
return null; |
61 | 65 |
} |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
@Override |
|
70 |
protected Control createToolbar() { |
|
71 |
ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT); |
|
72 |
toolBarManager.add(MediaViewSwitch.createSwitch(mediaMetaElement)); |
|
73 |
return toolBarManager.createControl(this); |
|
74 |
} |
|
75 |
|
|
62 | 76 |
} |
Also available in: Unified diff
move mediaToggleButton to the top