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
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 653
Registered: January 2012
Senior Member

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.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
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
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 653
Registered: January 2012
Senior Member

You could duplicate the StackRenderer class contents and then modify it.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
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: 6361
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
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 653
Registered: January 2012
Senior Member

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.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Change icons in multiple menu item when one is selected
Next Topic:Reproduce IElementUpdater behaviour in E4
Goto Forum:
  


Current Time: Fri Sep 22 22:38:43 GMT 2017

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

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