Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-update-dev] Re: hiding update manager menu (was: eclipse installation site types cleanup)



Peter,

Yes, you can use an activity to suppress it.  The example in the bugzilla
is a bit too harsh.  It suppresses all org.eclipse.update.ui contributions,
which has some side effects.   You may want to use patterns that match
explicitely what you want to disable.  Here are some examples that disable
the update menu items and the install/update preference page.

   <extension
         point="org.eclipse.ui.activities">
      <activity
            name="Eclipse Update Manager"
            id="activity.eclipseUpdateManager">
      </activity>
      <activityPatternBinding
            activityId="activity.eclipseUpdateManager"
            pattern=
"org\.eclipse\.update\.ui/org\.eclipse\.update\.ui\.updateMenu">
      </activityPatternBinding>
      <activityPatternBinding
            activityId="activity.eclipseUpdateManager"
            pattern=
"org\.eclipse\.update\.ui/org\.eclipse\.update\.ui\.configManager">
      </activityPatternBinding>
      <activityPatternBinding
            activityId="activity.eclipseUpdateManager"
            pattern=
"org\.eclipse\.update\.ui/org\.eclipse\.update.ui\.newUpdates">
      </activityPatternBinding>
      <activityPatternBinding
            activityId="activity.eclipseUpdateManager"
            pattern=
"org\.eclipse\.update\.ui/org\.eclipse\.update\.internal\.ui\.preferences\.MainPreferencePage"
>
      </activityPatternBinding>
      <activityPatternBinding
            activityId="activity.eclipseUpdateManager"
            pattern="org\.eclipse\.update\.scheduler/.*">
      </activityPatternBinding>

   </extension>

Cheers,

Mel

Dr. Mel Martinez
IBM Rich Client Platform
melm@xxxxxxxxxx


> Subject: Re: [platform-update-dev] eclipse installation site types
cleanup
> From: Peter Manahan <manahan@xxxxxxxxxx>
> Date: Wed, 21 Apr 2004 11:32:24 -0400
> Reply-To: platform-update-dev@xxxxxxxxxxx
>
> This is a multipart message in MIME format.
> --=_alternative 005559DF85256E7D_=
> Content-Type: text/plain; charset="US-ASCII"
>
> platform-update-dev-admin@xxxxxxxxxxx wrote on 21/04/2004 10:55:59 AM:
>
> >I only wanted to hide the
> > "Manage Configuration" not the whole Software Updates menu.
>
>
>  I see that the menu item for Manage Configuration is a separate menu
item
> (don't know why i thought it wasn't) . Doh!
> So I assume I can use an activity to suppress it?
>
>
>  Thanks,
>
>  -----------------------------------
>  Peter Manahan
>  IBM Rational Tools
>  Common Install
>  ------------------------------------
>  manahan@xxxxxxxxxx



Back to the top