Adding actions to properties view [message #703446] |
Wed, 27 July 2011 11:24  |
Eclipse User |
|
|
|
Hello,
I'm trying to use the standard properties viewer in Eclipse, but was hoping to add a few buttons at the top (right above the key value grid). I tried to extend PropertySheetPage and in my getAdapter method, I added an if-statement to check for IPropertySheetPage.
However, I noticed that this if-statement is never hit. Consequently I'm having some trouble making progress. Is this the right approach? I'm not interested in building a new viewer from scratch, so if it's possible to leverage the existing viewer, that would be great.
Would appreciate any advice. Thanks!
-upal
|
|
|
|
|
(no subject) [message #706113 is a reply to message #704547] |
Sat, 30 July 2011 17:23  |
Eclipse User |
|
|
|
Hi Upal,
Take a look at the perspectiveextension extension point. It contains some way
to remove icons and menu options. Use the menu spy CTRL+ALT+F2 to find the id
of the button to remove.
Regards,
Wim
> Hi Wim,
>
> Yes, I think this will do! Let me run it by a few people and get back to
you on that.
>
> In the meantime, I was wondering if you could advise me on how I can remove
some of the existing icons on the properties viewer. If we go down this
route, I'd like to remove some of the existing icons and replace them with
our own actions.
>
> Let me know what you think. Thanks!
> -upal
|
|
|
Powered by
FUDForum. Page generated in 0.04441 seconds