Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding actions to properties view
Adding actions to properties view [message #703446] Wed, 27 July 2011 11:24 Go to next message
Eclipse UserFriend
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 17:30 Go to previous messageGo to next message
Eclipse UserFriend
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 15:22 Go to previous messageGo to next message
Eclipse UserFriend
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 17:23 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 07:46:37 EDT 2025

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

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

Back to the top