views:

175

answers:

1

I have created a Eclipse plugin application, in which there are many secondary views created at runtime for a single static view. In the menu 'Window-> Show View', only the entry for the view statically created in the plugin.xml is displayed.

But the view that is created statically is useless in terms of showing results because the results are shown dynamically at runtime in the secondary views.

So, I want to display those secondary view in the menu 'Window->Show VIew' and remove the entry for that static view from there.

Is it possible to do the same? If yes, any suggestion in this will be very helpful.

Thanks in advance, Abhinav

A: 

If I believe this thread, the surest way to have a fine control over the content of the 'Window > Show View' menu is to build one...

I.e. Creating your own version of shortlist view menu item, with a code similar to org.eclipse.ui.internal.ShowViewMenu

VonC
Dear VonC,Thank you for your reply.I'd gone through that thread and source code you referred. But I think the function ShowViewMenu() doesn't support any parameters like secondary view id. So, I am not sure it's feasible to do so that way. Also addShowViewShortcut() function doesn't support parameter for secondary id.For information of other users with similar problem, please refer below:https://bugs.eclipse.org/bugs/show_bug.cgi?id=294066
Abhinav Mishra