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.

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.