Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Activities and Menus in Eclipse 3


Hello,

My apologies for posting to the dev list, but this seems to be the only place where I can get help with Activities-related issues. I tried working with activities in M6, the following are menu-related questions:

1. It seems that there is no way to hide a menu from the menubar, using activities. For example, I cannot remove "Search" from the menubar with the following patterns:
      <activityPatternBinding
            activityId="my.activities.ide"
            pattern="org.eclipse.search/org.eclipse.search.menu">
      </activityPatternBinding>
      <activityPatternBinding
            activityId="my.activities.ide"
            pattern="org.eclipse.help.ide/org.eclipse.search.menu">
      </activityPatternBinding>
      <activityPatternBinding
            activityId="my.activities.ide"
            pattern="org.eclipse.jdt.ui/org.eclipse.search.menu">
      </activityPatternBinding>
While I do succeed to remove certain menu items from within the "Search" menu, for example by the following:
        <activityPatternBinding
            activityId="my.activities.ide"
            pattern="org.eclipse.search/org.eclipse.search.OpenFileSearchPage">
      </activityPatternBinding>
Is there any way to hide the whole menu, using activities (I'd like to get rid of "Project" menu)?


2. When menu item is included into some disabled activity (like OpenFileSearchPage above),  the item doesn't appear at all. When I enable the activity, the item is still hidden. Only after workbench restart with the activity enabled, the menu item gets back. Is that the way things are supposed to be? The same also occurs in the opposite direction: I open workbench with enabled activity -> menu item appears. I uncheck the activity (via Window->Activity Configuration) - the menu item isn't hidden until workbench restart.

Thanks a lot for any help!

Back to the top