Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding a Property View to an RCP project
Adding a Property View to an RCP project [message #444878] Wed, 22 February 2006 16:53 Go to next message
Antonio Gurisatti is currently offline Antonio GurisattiFriend
Messages: 109
Registered: July 2009
Senior Member
Hello,

I'm building an RCP 3.1.2 project that has an editor that contains a table.

When I open the editor I need to open a Property View to set values for specific cells in the table and when I close the editor I must close de Property View.

I found an example "Take control of your properties" but it is so old that it doesn't even run.

I read the Apis for org.eclpse.ui.properties and org.eclipse.jface.preference and couldn't figure out how to do my job.

I would appreciate very much if some one helps me out.

Thanks a lot
Re: Adding a Property View to an RCP project [message #444881 is a reply to message #444878] Wed, 22 February 2006 17:52 Go to previous messageGo to next message
Stepan Rutz is currently offline Stepan RutzFriend
Messages: 52
Registered: July 2009
Member
Antonio,

you need to add the plugin org.eclipse.ui.views

for the PropertiesViews ...

Then in your page-layout invoke

folderLayout.addView("org.eclipse.ui.views.PropertySheet")

where folderLayout is some instanceof IFolderLayout

/Stepan





Antonio Gurisatti schrieb:
> Hello,
>
> I'm building an RCP 3.1.2 project that has an editor that contains a table.
>
> When I open the editor I need to open a Property View to set values for specific cells in the table and when I close the editor I must close de Property View.
>
> I found an example "Take control of your properties" but it is so old that it doesn't even run.
>
> I read the Apis for org.eclpse.ui.properties and org.eclipse.jface.preference and couldn't figure out how to do my job.
>
> I would appreciate very much if some one helps me out.
>
> Thanks a lot
Re: Adding a Property View to an RCP project [message #444887 is a reply to message #444878] Wed, 22 February 2006 20:11 Go to previous messageGo to next message
Antonio Gurisatti is currently offline Antonio GurisattiFriend
Messages: 109
Registered: July 2009
Senior Member
I followed your hint and got the following error:
org.eclipse.ui.PartInitException: Could not create view: org.eclipse.ui.views.PropertySheet

This sounds logical to me because there is no such "PropertySheet" under org.eclipse.ui.views.

My project already has some views that are working correctly.

My real problem is HOW TO CREATE A PROPERTY VIEW AND HOW TO LINK IT TO AN OBJECT CONTAINED IN ANOTHER VIEW OR EDITOR?

Thanks
Re: Adding a Property View to an RCP project [message #444898 is a reply to message #444878] Thu, 23 February 2006 08:12 Go to previous messageGo to next message
martin is currently offline martinFriend
Messages: 49
Registered: July 2009
Member
Antonio Gurisatti wrote:

> I found an example "Take control of your properties" but it is so old that it doesn't even run.

I used the same tutorial for learning how to use the property view, and
found it quite sufficient. I haven't tried the code sample though, just
followed the step-by-step instructions.

M
Re: Adding a Property View to an RCP project [message #444913 is a reply to message #444898] Thu, 23 February 2006 23:28 Go to previous message
Antonio Gurisatti is currently offline Antonio GurisattiFriend
Messages: 109
Registered: July 2009
Senior Member
My Dear M

Your piece of advise was great! First I created a new RCP project, built the example on it and made it work. Then, following it I solved my problem. Sometimes I forget that one of the good ways to learn is the Monkeys principle: Imitate and Copy!

Thanks a lot
Previous Topic:Update/Build page in wizard
Next Topic:Eclipse 3.2 M5 Workingsets button on toolbar
Goto Forum:
  


Current Time: Sun Dec 08 06:24:53 GMT 2024

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

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

Back to the top