Relative width of Parts in PartSashContainer - containerData has no effect [message #1115768] |
Tue, 24 September 2013 11:01  |
Eclipse User |
|
|
|
I'm creating a RCP e4 application product and want to set the initial width of two Parts in a horizontal PartSashContainer.
I read about just setting the containerData attribute of the Parts, e.g. "20" and "80" for a 20% to 80% relation. I'm just doing this but it doesn't have any effect on the actual rendering. The Parts have equal widths.
That's the appropriate code in the XMI:
<children xsi:type="basic:PartSashContainer" xmi:id="_YtXj4CUhEeO-E52C3JQ7OQ" elementId="my.partsashcontainer" containerData="" selectedElement="_-W9m8CUXEeO-E52C3JQ7OQ" horizontal="true">
<children xsi:type="basic:Part" xmi:id="_-W9m8CUXEeO-E52C3JQ7OQ" elementId="my.part1" containerData="20" contributionURI="bundleclass://my.app/my.part1" label="Part1"/>
<children xsi:type="basic:Part" xmi:id="_joYXsCE2EeO-E52C3JQ7OQ" elementId="my.part2" containerData="80" contributionURI="bundleclass://my.app/my.part2" label="Part2"/>
</children>
(The product is an org.eclipse.fx.ui.workbench.application, if that's of any interest.)
[Updated on: Tue, 24 September 2013 11:02] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04394 seconds