Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding actions to properties view
Adding actions to properties view [message #703446] Wed, 27 July 2011 15:24 Go to next message
upal  is currently offline upal
Messages: 6
Registered: July 2011
Junior Member
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 #703767 is a reply to message #703446] Wed, 27 July 2011 21:30 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Upal,

You can contribute a command to the toolbar by using the menus extension
point.

use the URI toolbar:org.eclipse.ui.views.PropertySheet

That will not be right above the columns. Will that work for you?

Regards,

Wim Jongman

> 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
Re: (no subject) [message #704547 is a reply to message #703767] Thu, 28 July 2011 19:22 Go to previous messageGo to next message
upal  is currently offline upal
Messages: 6
Registered: July 2011
Junior Member
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
(no subject) [message #706113 is a reply to message #704547] Sat, 30 July 2011 21:23 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
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
Previous Topic:SWTBot headless problem
Next Topic:Problem with Update jar File
Goto Forum:
  


Current Time: Thu Oct 02 10:35:48 GMT 2014

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

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