Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with TabbedProperties View
Problem with TabbedProperties View [message #459875] Fri, 08 December 2006 00:48 Go to next message
Eclipse UserFriend
Hello all,
I'm trying to integrate the tabbed properties in my RCP application n
these are the steps i do:

1. Define an tabbed.propertyContributor extension
2. Create a General Tab by defining the propertyTabs extension
3. Create a simple propertySection with a label and text and map the
corresponding classes with them.

In my view I've a simple text field and i want to set the input for that
field by utilising this properties view. As and when i type some text in
the properties view tab i want the corresponding text to be displayed in
the view's text as well.
The problem am facing is when i run the application the properties tab
itself is not showing up and i my properties view displays the message
"Properties are not available"
Am i missing something somewhere? Kindly help.

thanks in advance,
Srivatsan
Re: Problem with TabbedProperties View [message #459880 is a reply to message #459875] Fri, 08 December 2006 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

Srivatsan wrote:
> I'm trying to integrate the tabbed properties in my RCP application n
> these are the steps i do:
>
> 1. Define an tabbed.propertyContributor extension
> 2. Create a General Tab by defining the propertyTabs extension
> 3. Create a simple propertySection with a label and text and map the
> corresponding classes with them.

> The problem am facing is when i run the application the properties tab
> itself is not showing up and i my properties view displays the message
> "Properties are not available"
> Am i missing something somewhere? Kindly help.

I'd recommend taking a look at [1]. You should be using three extension
points in addition to having a type mapper and label provider so that it
knows which properties/tabs to show. In my case the class providing the
contribution also overrides getAdapter(Class) to return a proper Page.

[1] -
http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html

Regards,
Rem
Re: Problem with TabbedProperties View [message #459884 is a reply to message #459880] Fri, 08 December 2006 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Remy,
Thanks for your response. In the example link that you've provided it's
been mentioned that i need to provide the typemapper as well as the label
provider as well when i define a contributor. Could you share some
thoughts on the same. Am not exactly able to understand whats a type
mapper.

regards,
Srivatsan
Re: Problem with TabbedProperties View [message #459889 is a reply to message #459884] Fri, 08 December 2006 05:57 Go to previous messageGo to next message
Eclipse UserFriend
Remy,
In the example that you'd pointed nothing is done wrt to typeMapper and
labelProvider in the Plugin.xml file.
Could you please share the steps that you'd followed to implement tabbed
properties view?

regards,
Srivatsan
Re: Problem with TabbedProperties View [message #459890 is a reply to message #459889] Fri, 08 December 2006 06:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

Srivatsan wrote:
> Remy,
> Thanks for your response. In the example link that you've provided it's
> been mentioned that i need to provide the typemapper as well as the
> label provider as well when i define a contributor. Could you share some
> thoughts on the same. Am not exactly able to understand whats a type
> mapper.

The type mapper defines the class of the input type. When a selection is
made (from the contributing class I think it was?) the type mapper will
read it in and determine what kind of class it is. After manipulations
you may return a java.lang.Class, say, IInterface.

Now in your propertySections extension point for each propertySection
XML node, you also need to define an 'input type'. In this scenario
you'd set IInterface (or whatever) as the input class/type.

So whenever you get a selection and you should determine what type of
object it represents and return the correct java.lang.Class so that the
propertySections extension point knows what tabs to display.

Uh, I hope that makes sense. :/

> In the example that you'd pointed nothing is done wrt to typeMapper and
> labelProvider in the Plugin.xml file.

Oh, really? My mistake, it's been a while since I looked at the example.
Once I got off the ground I deleted that project. ;P

Regards,
Rem
Re: Problem with TabbedProperties View [message #459891 is a reply to message #459890] Fri, 08 December 2006 06:49 Go to previous message
Eclipse UserFriend
Thanks.
:-)
Previous Topic:What happens with my Problem View ?
Next Topic:editor in readony mode
Goto Forum:
  


Current Time: Sat Mar 22 12:36:27 EDT 2025

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

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

Back to the top