Skip to main content



      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 09:20 Go to next message
Eclipse UserFriend
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 10:01 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 02:09:52 EDT 2025

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

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

Back to the top