Skip to main content

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


Hrm... that's not right.  :)  I'll reopen Bug 47098 and check it out.  Thanks!



Ksenya Lossiev <KSENYA@xxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx

22/01/2004 08:55 AM

Please respond to
platform-ui-dev

To
platform-ui-dev@xxxxxxxxxxx
cc
Subject
Re: [platform-ui-dev] Activities and Menus in Eclipse 3






Kim, Tod

Thanks a lot!

Regarding 1, automatical hiding does not seem to happen to me. For example, I filter everything from 'Search' menu by the following:

       <activityPatternBinding

           
activityId="my.activities.ide"
           
pattern="org.eclipse.search/org.eclipse.search.OpenFileSearchPage">
     
</activityPatternBinding>
     
<activityPatternBinding
           
activityId="my.activities.ide"
           
pattern="org.eclipse.search/org.eclipse.search.OpenSearchDialog">
     
</activityPatternBinding>
     
<activityPatternBinding
           
activityId="my.activities.ide"
           
pattern="org.eclipse.help.ide/org.eclipse.help.ide.OpenHelpSearchPage">
     
</activityPatternBinding>
The 'Search' menu still appears in the menubar, but contains no items.

The same happens for 'Run' menu, when the following filter is used:

       <activityPatternBinding

           
activityId="org.eclipse.externalTools"
           
pattern="org.eclipse.ant.*">
     
</activityPatternBinding>
     
<activityPatternBinding
           
activityId="org.eclipse.externalTools"
           
pattern="org.eclipse.ui.externaltools.*">
     
</activityPatternBinding>

Regards


----------------------------------------
Ksenya Lossiev
RAD Technologies
IBM Haifa Research Lab
Tel: 972-4-8296175
E-Mail: ksenya@xxxxxxxxxx



Kim Horne <Kim_Horne@xxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx

21/01/04 15:07
Please respond to platform-ui-dev

       
       To:        platform-ui-dev@xxxxxxxxxxx

       cc:        

       Subject:        Re: [platform-ui-dev] Activities and Menus in Eclipse 3





1) You can't remove the menu from the menu bar explicitly.  However, it will be hidden automatically if it only contains only filtered or non-visible items.  Your only solution is to put pattern bindings on each of the contributed actions.  Hiding a menu outright seems problematic - if it has actions that are either on by default (no bindings) or on due to activity enablement, why should they be hidden from the user?  I'm not convinced this is behaviour that the activity system should support, although please feel free to log a bug and cast your vote.


2) This problem was addressed in Bug 44455 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=44455) which is fixed and will be included in M7 (and is already in recent integration builds).


Ksenya Lossiev <KSENYA@xxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx

21/01/2004 07:27 AM

Please respond to
platform-ui-dev


To
platform-ui-dev@xxxxxxxxxxx
cc
Subject
[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