Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to change the look for local view menu
How to change the look for local view menu [message #437029] Tue, 20 September 2005 16:52 Go to next message
Andriy Rysin is currently offline Andriy RysinFriend
Messages: 2
Registered: July 2009
Junior Member
Can anybody please tell me how to change the look for local view menu?
I have a customer request that that small triangle for view menu should
be made more visible and have translatable text on it.

I can create MenuManager in ToolBar and add items to it (and remove all
items from local menu to hide it) but that way I cannot add menus with
plugin.xml and I have to do all of them in the code. It'd be nice if I
could use all the functionality for view local menu and just change it's
control/icon.

Thanks,
Andriy
Re: How to change the look for local view menu [message #437040 is a reply to message #437029] Wed, 21 September 2005 01:06 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
To do that you would have to look into the presentation API and create
your own presentation. However given what you want is very close from
the eclipse default presentatino it should be pretty easy.

That said as I'm not a ui export, the only hint I can tell you is to
look around IPresentablePart.getToolBar()

HTH,

PaScaL

Andriy Rysin wrote:
> Can anybody please tell me how to change the look for local view menu?
> I have a customer request that that small triangle for view menu should
> be made more visible and have translatable text on it.
>
> I can create MenuManager in ToolBar and add items to it (and remove all
> items from local menu to hide it) but that way I cannot add menus with
> plugin.xml and I have to do all of them in the code. It'd be nice if I
> could use all the functionality for view local menu and just change it's
> control/icon.
>
> Thanks,
> Andriy
Re: How to change the look for local view menu [message #437457 is a reply to message #437040] Wed, 28 September 2005 17:48 Go to previous message
Andriy Rysin is currently offline Andriy RysinFriend
Messages: 2
Registered: July 2009
Junior Member
Thanks,

I've taken a look and it seemed too complex to replace local menu, so I
just defined new menuManager in toolbar, registered context menu and
transferred all definitions in plugin.xml from viewActions to popupMenu.

Andriy

Pascal Rapicault wrote:
> To do that you would have to look into the presentation API and create
> your own presentation. However given what you want is very close from
> the eclipse default presentatino it should be pretty easy.
>
> That said as I'm not a ui export, the only hint I can tell you is to
> look around IPresentablePart.getToolBar()
>
> HTH,
>
> PaScaL
Previous Topic:ID of the help view
Next Topic:[PDE] preferred newsgroup for PDE questions?
Goto Forum:
  


Current Time: Sat Dec 14 14:37:58 GMT 2024

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

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

Back to the top