Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Filtering Menu Items with Activities

I would use the new plug-in spy mode available as of 3.5 M7. Press
Shift+Alt+F2, then select the menu item you would like to know more
about. This is only to find the IDs, your RCP app can still target an
older version of Eclipse of course.

Please follow up on the eclipse.platform.rcp newsgroup.


On Mon, May 18, 2009 at 1:21 PM, Michael Ihde
<mike.ihde@xxxxxxxxxxxxxxxxx> wrote:
> In my RCP product I'm trying to filter out some of the core main menu
> items, such as "Customize Perspective".  I've tried numerous
> activityPatternBinding patterns and I can get *most* of the undesired
> elements removed with "org\.eclipse\.ui\..*" but this unfortunately
> removes things like the "Exit" menu item.  I've tried many other
> pattern bindings to attempt to get finer control, but none of them
> remove anything.  For example "org\.eclipse\.ui/.*",
> "org\.eclipse\.ui\.[a-zA-Z]*", "org\.eclipse\.ui.*/.*" all have no
> effect.  I've also tried all possible plugin ids (such as workbench,
> ide, etc.) in a format such as "org\.eclipse\.ui\.workbench/.*" to no
> avail.
> How do I figure out the proper IDs to use for these menu items.
> Specifically I want to remove
>  Window -> New Window
>  Window -> Customize Perspective...
>  Window -> Save Perspective As...
>  Window -> Close Perspective
>  Window -> Close All Perspectives
>  Window -> Preferences
>  Edit -> Add Bookmark
>  Edit -> Add Task
>  File -> Switch Workspace
> Thanks,
> ~Michael
> _______________________________________________
> platform-ui-dev mailing list
> platform-ui-dev@xxxxxxxxxxx

Back to the top