Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:59 Go to next message
Sharon Dagan is currently offline Sharon DaganFriend
Messages: 12
Registered: November 2013
Junior Member
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 16:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 21:20 Go to previous message
Sharon Dagan is currently offline Sharon DaganFriend
Messages: 12
Registered: November 2013
Junior Member
Thanks
Previous Topic:IDE functionality in Eclipse 4 RCP
Next Topic:No Separator option available under Model Fragment -> Add child
Goto Forum:
  


Current Time: Thu Apr 18 02:36:13 GMT 2024

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

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

Back to the top