Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Filtering out Run and Debug using Activities(Unable to filter out Run->... menu items using org.eclipse.ui.activities)
Filtering out Run and Debug using Activities [message #638047] Tue, 09 November 2010 13:11 Go to next message
Joey Mink is currently offline Joey Mink
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

Hi,

I'm trying to remove specific menu items from the Run menu in my Eclipse plug-in. But at this point, I just want to see my efforts have *any* effect on the UI. Below is the portion of my plugin.xml having to do with activities. I believe what it should do is hide any menu items contributed by org.eclipse.debug.* And I believe that includes the following menu items:

Run
Debug
Run History
Run As
Run Configurations...
Debug History
Debug As
Debug Configurations...

However my single activity below does not hide these menu items. I see my activity in Window->Preferences->General->Capabilities, and it's disabled. But the code doesn't appear to have any effect on the menu items.

   <extension
         point="org.eclipse.ui.activities">
      <category
            description="Contains activities bindings declared in the com.exo.seas plugin"
            id="com.exo.seas.activity.category.seas"
            name="SEAS Activities">
      </category>
   </extension>
   <extension
         point="org.eclipse.ui.activities">
      <activity
            description="An activity for Debugging capabilities"
            id="com.exo.seas.activity.debug"
            name="Debug Activity">
      </activity>
      <categoryActivityBinding
            activityId="com.exo.seas.activity.debug"
            categoryId="com.exo.seas.activity.category.seas">
      </categoryActivityBinding>
      <activityPatternBinding
            activityId="com.exo.seas.activity.debug"
            pattern="org\.eclipse\.debug\..*/.*">
       </activityPatternBinding>
   </extension>


Thanks!
Re: Filtering out Run and Debug using Activities [message #643051 is a reply to message #638047] Fri, 03 December 2010 13:09 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Joey,

IIRC the perspectiveExtension extension point has options for removing menu
items.

--

Best Regards,
Wim Jongman


> Hi,
>
> I'm trying to remove specific menu items from the Run menu in my Eclipse
plug-in. But at this point, I just want to see my efforts have *any* effect
on the UI. Below is the portion of my plugin.xml having to do with
activities. I believe what it should do is hide any menu items contributed by
org.eclipse.debug.* And I believe that includes the following menu items:
>
> Run
> Debug
> Run History
> Run As
> Run Configurations...
> Debug History
> Debug As
> Debug Configurations...
>
> However my single activity below does not hide these menu items. I see my
activity in Window->Preferences->General->Capabilities, and it's disabled.
But the code doesn't appear to have any effect on the menu items.
>
>
> <extension
> point="org.eclipse.ui.activities">
> <category
> description="Contains activities bindings declared in the com.exo.seas
plugin"
> id="com.exo.seas.activity.category.seas"
> name="SEAS Activities">
> </category>
> </extension>
> <extension
> point="org.eclipse.ui.activities">
> <activity
> description="An activity for Debugging capabilities"
> id="com.exo.seas.activity.debug"
> name="Debug Activity">
> </activity>
> <categoryActivityBinding
> activityId="com.exo.seas.activity.debug"
> categoryId="com.exo.seas.activity.category.seas">
> </categoryActivityBinding>
> <activityPatternBinding
> activityId="com.exo.seas.activity.debug"
> pattern="org\.eclipse\.debug\..*/.*">
> </activityPatternBinding>
> </extension>
>
>
> Thanks!
Re: Filtering out Run and Debug using Activities [message #643456 is a reply to message #638047] Mon, 06 December 2010 17:37 Go to previous message
Joey Mink is currently offline Joey Mink
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

Wim,

Thanks for the reply - I saw that the perspectiveExtension had the ability to create a hidden menu item of sorts, but I couldn't seem to get it to hide any menu contributions.

However, I finally found an activities example that was able to lead me to success:

http://dev.eclipse.org/viewcvs/viewvc.cgi/platform-ui-home/a ctivities/activities.zip
Previous Topic:ToolBar update upon perspective switch
Next Topic:Create Batch file to repeat IDE-like launch from external
Goto Forum:
  


Current Time: Tue Jul 22 15:54:19 EDT 2014

Powered by FUDForum. Page generated in 0.02357 seconds