Skip to main content



      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 11:53 Go to next message
Eclipse UserFriend
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 12:52 Go to previous messageGo to next message
Eclipse UserFriend
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 15:11 Go to previous messageGo to next message
Eclipse UserFriend
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 03:12 Go to previous messageGo to next message
Eclipse UserFriend
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 18:28 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 22:33:20 EDT 2025

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

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

Back to the top