Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Removing button from properties viewer
Removing button from properties viewer [message #718926] Thu, 25 August 2011 15:52
upal  is currently offline upal
Messages: 6
Registered: July 2011
Junior Member
Hello,

I've been trying to remove the "Show categories" button and the "Pin" button on the properties viewer.

I tried to use activities to remove the actions, but did not succeed. Here's what I did:

   <extension
         point="org.eclipse.ui.activities">
      <activity
            id="propertiesViewToolbarExclusion.activity"
            name="Exclude from properties view UI">
      </activity>
      <activityPatternBinding
            activityId="propertiesViewToolbarExclusion.activity"
            pattern="categories">
      </activityPatternBinding>
      <activityPatternBinding
            activityId="propertiesViewToolbarExclusion.activity"
            pattern="org\.eclipse\.ui\.views\.properties\.PinPropertySheetAction*">
      </activityPatternBinding>
   </extension>


I found that the id of the "Show categories" action was "categories" and the id of the "Pin" action was org.eclipse.ui.views.properties.PinPropertySheetAction* (where '*' reprents a random number). However, this didn't work for me.

I also used a perspectiveExtension, but had no luck with that either.

I'd appreciate it if someone can give me some advice on how to remove those actions.

Thanks!
-upal
Previous Topic:Unable to find feature.xml file in directory
Next Topic:validation using filed editors in prefernce page
Goto Forum:
  


Current Time: Sun Sep 21 12:04:47 GMT 2014

Powered by FUDForum. Page generated in 0.12119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software