Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Decorating the Shell just before it appears
Decorating the Shell just before it appears [message #1219208] Mon, 02 December 2013 10:59 Go to next message
Eclipse UserFriend
Hi,

I'm developing an application that runs on OS X (only).

On this platform, the 'main' toolbar is visually integrated with the window frame, and they appear as one.
On SWT, this can be done by placing ToolItems on the Shell.getToolBar() rather than on a new ToolBar(shell...).

On E4, the *easiest* way to do this *seems* to be by getting a callback after the top level shell was created and before it appears on the screen, and then decorating it.

I tried the UIEvents.UILifeCycle.APP_STARTUP_COMPLETE event, but that's too late (shell already open).
I tried @Inject @Named(IServiceConstants.ACTIVE_SHELL) but that's either too late or too early (null).

Now what?








Re: Decorating the Shell just before it appears [message #1219210 is a reply to message #1219208] Mon, 02 December 2013 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Well I would implement a custom renderer for Trim & Toolbar and detect
if I'm on the top-trim create the toolitems on the one from the shell.

Tom

On 02.12.13 16:59, Sharon Dagan wrote:
> Hi,
>
> I'm developing an application that runs on OS X (only).
>
> On this platform, the 'main' toolbar is visually integrated with the
> window frame, and they appear as one.
> On SWT, this can be done by placing ToolItems on the Shell.getToolBar()
> rather than on a new ToolBar(shell...).
>
> On E4, the *easiest* way to do this *seems* to be by getting a callback
> after the top level shell was created and before it appears on the
> screen, and then decorating it.
> I tried the UIEvents.UILifeCycle.APP_STARTUP_COMPLETE event, but that's
> too late (shell already open).
> I tried @Inject @Named(IServiceConstants.ACTIVE_SHELL) but that's either
> too late or too early (null).
>
> Now what?
>
>
>
>
>
>
>
>
>
Re: Decorating the Shell just before it appears [message #1219248 is a reply to message #1219210] Mon, 02 December 2013 16:20 Go to previous message
Eclipse UserFriend
Thanks
Previous Topic:IDE functionality in Eclipse 4 RCP
Next Topic:No Separator option available under Model Fragment -> Add child
Goto Forum:
  


Current Time: Sun Jul 27 22:21:13 EDT 2025

Powered by FUDForum. Page generated in 0.05912 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top