Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add a second CoolBar???
How to add a second CoolBar??? [message #449780] Fri, 19 May 2006 05:29 Go to next message
Eclipse UserFriend
Hi,

I like to add a coolbar to the left side of my application window to realize a custom perspective switcher. I already tried a view that is visible in all perspectives (see thread http://www.eclipsezone.com/eclipse/forums/t72165.html), but I need a control that has the same size in each perspective, regardless of user resizing actions. it seems to me that the only way is a coolbar.
But how do I add one to the left side of my app window? I tried to override WorkbenchWindowAdvisor.createWindowContents, but to add the coolbar to the left side I have to use the TrimLayout.setTrim method. But TrimLayout is an internal class. I could create the whole window contents, but then I'm loosing a lot of the apps default behaviour.
Can anybody help me out?

- Torsten
Re: How to add a second CoolBar??? [message #449781 is a reply to message #449780] Fri, 19 May 2006 05:58 Go to previous message
Eclipse UserFriend
Originally posted by: kristof.taveirne.intec.ugent.be

Torsten Beuck schreef:
> Hi,
>
> I like to add a coolbar to the left side of my application window to realize a custom perspective switcher. I already tried a view that is visible in all perspectives (see thread http://www.eclipsezone.com/eclipse/forums/t72165.html), but I need a control that has the same size in each perspective, regardless of user resizing actions. it seems to me that the only way is a coolbar.
> But how do I add one to the left side of my app window? I tried to override WorkbenchWindowAdvisor.createWindowContents, but to add the coolbar to the left side I have to use the TrimLayout.setTrim method. But TrimLayout is an internal class. I could create the whole window contents, but then I'm loosing a lot of the apps default behaviour.
> Can anybody help me out?
>
> - Torsten

Hmm,
I've read the thread about your problem, and I'm in fact strugling with
the same thing.

Did you by any change check out the PerspectiveBar? Because that thing
realy has the functionality we are looking for.
The only problem is for me that the perspectivebar is a bit to
primitive. Just like you I'm creating a navigation plugin so other
developers can write their own perspectives. The only thing I've defined
is a new extension point where the plugin developers can add extra
customizations. An extra thing is that the buttons are state enabled.
plugins can tell the navigation view that there is something happening
that needs the user's attention while the perspective isn't visible.

So therefor i've written a sticky view to do this (just like you did).

The size of this sticky view however depends on the sashhandler which is
bound NOT to the sticky view but to the perspective that is shown
besides it.

Grtz,
Kristof.
Previous Topic:RCP and “Link with editor” view action…
Next Topic:Dynamic language support
Goto Forum:
  


Current Time: Sun Aug 31 02:13:01 EDT 2025

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

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

Back to the top