Removing button from properties viewer [message #718926] |
Thu, 25 August 2011 15:52 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03861 seconds