Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with TabbedProperties View
Problem with TabbedProperties View [message #460000] Mon, 11 December 2006 05:20 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 following the example defined in the article <b> http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html</b>
Am i missing something somewhere? Kindly help.

Thanks in advance,
Srivatsan
Re: Problem with TabbedProperties View [message #460002 is a reply to message #460000] Mon, 11 December 2006 05:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

Hi Srivastan,

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.
>
> 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"

I'd recommend you post (parts of?) your plugin.xml file. Extension point
problems are really hard to diagnose when you can't see it.

1. Is your contributorId in the propertyContributor extension point unique?
2. Do you have categories defined under that extension point?
3. Does your (I presume to be) IWorkbenchPart implement
ITabbedPropertySheetPageContributor and is returning the same ID in
getContributorId() as what is in the plugin.xml file?
4. Does your propertyTab extensions' 'id' attribute match the 'tab'
attribute of your extensions in the propertySection extension point?

I could ask more but these are the obvious ones...I think.

Good luck.

Regards,
Rem
Re: Problem with TabbedProperties View [message #460004 is a reply to message #460002] Mon, 11 December 2006 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi Remy,
As u said these are pretty obvious n simple steps which i've done
correctly. The example that you had pointed out does talk about these
steps as well.

regards,
Srivatsan
Re: Problem with TabbedProperties View [message #460029 is a reply to message #460004] Mon, 11 December 2006 19:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

Srivatsan wrote:
> Hi Remy,
> As u said these are pretty obvious n simple steps which i've done
> correctly. The example that you had pointed out does talk about these
> steps as well.

Um, can you post parts of your plugin.xml file, then?

Regadrs,
Rem
Re: Problem with TabbedProperties View [message #460033 is a reply to message #460029] Mon, 11 December 2006 23:28 Go to previous messageGo to next message
Eclipse UserFriend
Hello Rem
This is that part of my plugin.xml wherein i create the 3 extensions.

<extension

point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
<propertyContributor
contributorId="TabbedPropertiesExample.view"
typeMapper="views.View">
<propertyCategory category="general"/>
</propertyContributor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
<propertyTabs contributorId="TabbedPropertiesExample.view">
<propertyTab
category="general"
id="generalTab"
label="General"/>
<propertyTab
afterTab="generalTab"
category="views.View"
id="advancedTab"
label="Advanced"/>
</propertyTabs>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections ">
<propertySections contributorId="TabbedPropertiesExample.view">
<propertySection

class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
id="AdvancedSection"
tab="advancedTab">
<input type="properties.TextElement"/>
</propertySection>
</propertySections>
</extension>

Regards,
Srivatsan
Re: Problem with TabbedProperties View [message #460034 is a reply to message #460033] Mon, 11 December 2006 23:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

Srivatsan wrote:
> Hello Rem
> This is that part of my plugin.xml wherein i create the 3 extensions.

Cool, thanks, see below. You're missing a section for your generalTab,
which I think is causing problems because since general doesn't show,
advanced doesn't either because it comes after. Every tab needs to
correspond to a section. Your advanced propertyTab also seems to have
the wrong category.

I think this should do it.

> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
> <propertyContributor
> contributorId="TabbedPropertiesExample.view"
> typeMapper="views.View">
> <propertyCategory category="general"/>
> </propertyContributor>
> </extension>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
> <propertyTabs contributorId="TabbedPropertiesExample.view">
> <propertyTab
> category="general"
> id="generalTab"
> label="General"/>
> <propertyTab
> afterTab="generalTab"
category="general"
> id="advancedTab"
> label="Advanced"/>
> </propertyTabs>
> </extension>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertySections ">
> <propertySections contributorId="TabbedPropertiesExample.view">
<propertySection
class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
id="GeneralSection"
tab="generalTab">
<input type="properties.TextElement"/>
</propertySection>
> <propertySection
> class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
afterTab="GeneralSection"
> id="AdvancedSection"
> tab="advancedTab">
> <input type="properties.TextElement"/>
> </propertySection>
> </propertySections>
> </extension>

Good luck,
Regards,
Rem
Re: Problem with TabbedProperties View [message #460035 is a reply to message #460034] Tue, 12 December 2006 01:22 Go to previous message
Eclipse UserFriend
Oh..Thats perfect. Its workin fine now. Thanks remy.

regards,
Srivatsan
Previous Topic:using AbstractPreferenceInitializer versus Activator.start()
Next Topic:general preference page
Goto Forum:
  


Current Time: Fri Mar 21 17:38:44 EDT 2025

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

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

Back to the top