Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Custom context menu for tabs(How to customize the context menu when right-clicking the tab of a Part)
Custom context menu for tabs [message #1700371] Thu, 02 July 2015 08:40 Go to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
Hi,

what would you consider the best approach to customize the context menu of a partStack's tab? I would like it to show additional entries, not just the usual "Close, Close All, Close Others..."
Re: Custom context menu for tabs [message #1700444 is a reply to message #1700371] Thu, 02 July 2015 15:39 Go to previous messageGo to next message
Eclipse UserFriend
With Eclipse Platform 4.5 (Mars) we provided the ability to provide a new StackRenderer to replace the menu generated (as part of bug 461724). Lars Vogel's has a tutorial on replacing renderers. We'll look to improve the process for 4.6.

Brian.
Re: Custom context menu for tabs [message #1700503 is a reply to message #1700444] Fri, 03 July 2015 05:55 Go to previous messageGo to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
Hi Brian,

thanks for your answer. I already have to use custom renderers, so this will not be the problem here. But I am only using 4.3 - is there another way than upgrading to 4.5 to achieve this?
Re: Custom context menu for tabs [message #1700550 is a reply to message #1700503] Fri, 03 July 2015 13:17 Go to previous messageGo to next message
Eclipse UserFriend
You could duplicate the StackRenderer class contents and then modify it.

Brian.
Re: Custom context menu for tabs [message #1700770 is a reply to message #1700550] Tue, 07 July 2015 05:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
.... which requires you to release it under EPL!

Tom

On 03.07.15 15:17, Brian de Alwis wrote:
> You could duplicate the StackRenderer class contents and then modify it.
>
> Brian.
Re: Custom context menu for tabs [message #1700848 is a reply to message #1700770] Tue, 07 July 2015 14:47 Go to previous message
Eclipse UserFriend
If you are applying changes that are already present, then your changes are already available. You can also fulfill the requirements by posting your changes to a bug report / change request.
Previous Topic:Command/keyboard binding to jump between split editor panes?
Next Topic:RCP Books
Goto Forum:
  


Current Time: Thu Apr 18 04:17:06 GMT 2024

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

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

Back to the top