Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPart on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1181871/#msg_1181871
I've the following configuration in my Application.e4xmi:
The Part gets rendered always left besides PartSash Container (I think it's of org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer#createWidget, where the composite is created with new FillLayout(SWT.VERTICAL)). How can I achieve that the Part is rendered on top of PartSashContainer?
Thanks in advance,
Ralf.]]>Ralf Heydenreich2013-11-11T22:21:49-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1182537/#msg_1182537
> Hi all,
>
> I've the following configuration in my Application.e4xmi:
>
>
> +-------- Trimmed Window
> +------ Controls
> +---- Perspective Stack
> +-- Controls
> + Part
> + PartSashContainer
>
>
> The Part gets rendered always left besides PartSash Container (I think
> it's of
> org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer#createWidget,
> where the composite is created with new FillLayout(SWT.VERTICAL)). How
> can I achieve that the Part is rendered on top of PartSashContainer?
>
> Thanks in advance,
>
> Ralf.
Make it look like:
Controls
+ PartSashContainer (vertical)
+ Part
+ PartSashContainer
Tom]]>Thomas Schindl2013-11-12T08:52:51-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1182781/#msg_1182781
+---------------+
|C|O|O|L|B|A|R |
+---------------+ <-- this divider shouldn't be moveable!
| |
| Application |
| area |
| |
+---------------+
I can't use the trimmed toolbar, because I didn't found a possibility to put larger icons on it with text beneath.
How can I get this?
Ralf.]]>Ralf Heydenreich2013-11-12T12:08:28-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1182806/#msg_1182806
a custom PartSashRenderer.
The JavaFX renderer support this but well they are for FX ;-)
Tom
On 12.11.13 13:08, Ralf Heydenreich wrote:
> This works, but I want to fix the divider. Like this:
>
>
> +---------------+
> |C|O|O|L|B|A|R |
> +---------------+ <-- this divider shouldn't be moveable!
> | |
> | Application | | area |
> | |
> +---------------+
>
>
> I can't use the trimmed toolbar, because I didn't found a possibility to
> put larger icons on it with text beneath. How can I get this?
>
> Ralf.]]>Thomas Schindl2013-11-12T12:26:38-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1182812/#msg_1182812
You create contents of ToolControl like you do for MPart - with @PostConstruct annotated method in class contribution. That's where you can create yout custom CoolBar widget.]]>Andrzej Szczepanski2013-11-12T12:33:23-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1182835/#msg_1182835
Tom
On 12.11.13 13:33, Andrzej Szczepanski wrote:
> Just add ToolControl instead of ToolBar as contents of your window's Top
> TrimBar.
>
> You create contents of ToolControl like you do for MPart - with
> @PostConstruct annotated method in class contribution. That's where you
> can create yout custom CoolBar widget.]]>Thomas Schindl2013-11-12T12:51:36-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1182855/#msg_1182855
Andrzej Szczepanski2013-11-12T13:10:17-00:00Re: Part on top of a PartSashContainer
https://www.eclipse.org/forums/index.php/mv/msg/592320/1183419/#msg_1183419
> Just add ToolControl instead of ToolBar as contents of your window's Top
> TrimBar.
>
> You create contents of ToolControl like you do for MPart - with
> @PostConstruct annotated method in class contribution. That's where you
> can create yout custom CoolBar widget.
Hi Andrzej,
this was exactly what I'd looked for. Works perfectly. Thanks!