Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to customize View part popup menu
How to customize View part popup menu [message #757291] Thu, 17 November 2011 14:20 Go to next message
gaurav dubey is currently offline gaurav dubeyFriend
Messages: 45
Registered: July 2009
Member
Hello All,

I am using view part, but we would require a feature [close all/Close others option on right click on view part popup menu, like eclipse displaying in editor area,
Is it possible to somehow extend the view part popup menu or not?(Screenshot attached)

One more question is can i use editor as view part to display swt component if the customization is not possible in view part.


Thanks in advance.

Regards
Gaurav
Re: How to customize View part popup menu [message #757935 is a reply to message #757291] Thu, 17 November 2011 15:01 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-11-17 15:20, gaurav dubey wrote:
> Hello All,
>
> I am using view part, but we would require a feature [close all/Close others option on right click on view part popup menu, like eclipse displaying in editor area,
> Is it possible to somehow extend the view part popup menu or not?(Screenshot attached)
>
> One more question is can i use editor as view part to display swt component if the customization is not possible in view part.

Just use the org.eclipse.ui.menus extension point and provide a command
with a locationURI that starts with

popup:/your_view_id/

For more details see the org.eclipse.ui.menus extension point description.

Remark: Your view part must have registered a context menu via its site
in the createPartControl method using the registerContextMenu function.

HTH & Greetings from Bremen,

- Daniel Krügler
Previous Topic:Create new file wizard in context project menu -> new
Next Topic:Refreshing Editor
Goto Forum:
  


Current Time: Thu Mar 28 20:57:50 GMT 2024

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

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

Back to the top