Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Mutliple Tabs not showing for Tabbed Properties view
Mutliple Tabs not showing for Tabbed Properties view [message #316923] Thu, 21 June 2007 15:38 Go to next message
Roshan S. is currently offline Roshan S.
Messages: 125
Registered: July 2009
Senior Member
Hi,
I've created a tabbed properties view with two tabs (Callbacks, and
Advanced for now). My editor shows both of these tabs when I have the
same input source, but when I add an different input source for the
second tab, only one tab is shown. I'm only using the
AdvancedPropertySection for both tabs in my tab view. Here's a partial
of my plugin.xml

<extension
point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
<propertyContributor
contributorId="editors.DataElemFormEditor"
>
<propertyCategory category="advanced"/>
<propertyCategory category="callbacks"/>
</propertyContributor>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
<propertyTabs contributorId="editors.DataElemFormEditor">
<propertyTab
afterTab="SpecCallbacks"
category="advanced"
id="SpecAdvanced"
label="Advanced"/>
<propertyTab
category="callbacks"
id="SpecCallbacks"
label="Callbacks"/>
</propertyTabs>
</extension>
<extension
point="org.eclipse.ui.views.properties.tabbed.propertySections ">
<propertySections contributorId="editors.DataElemFormEditor">
<propertySection
afterSection="SpecCallbacks"

class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
id="AdvancedSection"
tab="SpecAdvanced">
<input type="EObjectPropertySheetContentProvider"/>
</propertySection>
<propertySection

class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
id="CallbacksSection"
tab="SpecCallbacks">
<input type="EObjectPropertySheetContentProvider2"/>
</propertySection>
</propertySections>
</extension>

</plugin>
Re: Mutliple Tabs not showing for Tabbed Properties view [message #316933 is a reply to message #316923] Thu, 21 June 2007 18:57 Go to previous messageGo to next message
Roshan S. is currently offline Roshan S.
Messages: 125
Registered: July 2009
Senior Member
I'll try explaining my problem further.

What I have is an EditorPart which implements the
ITabbedPropertySheetPageContributer. I also have several implementations
of IPropertySource, which I would like to correspond to different tabs,
one IPropertySource for each tab. I have an object that is in my
EditorPart which has all of the data that I can pass to the
corresponding IPropertySource.

I want those tabs to be shown in the properties view when I select that
particular EditorPart. The problem is that currently I create a new
StructuredSelection(IPropertySource) and in the EditorPart.setFocus() I
do a getSite().getSelectionProvider().setSelection(StructuredSele ction)
of the one I created, and this makes just the corresponding tab show up
for that IPropertySource. I must be doing something wrong because I
need to have multiple tabs using the corresponding IPropertySource as I
explained above.

Can anyone please help?

Thanks
Roshan


Roshan Soni wrote:
> Hi,
> I've created a tabbed properties view with two tabs (Callbacks, and
> Advanced for now). My editor shows both of these tabs when I have the
> same input source, but when I add an different input source for the
> second tab, only one tab is shown. I'm only using the
> AdvancedPropertySection for both tabs in my tab view. Here's a partial
> of my plugin.xml
>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertyContributor ">
> <propertyContributor
> contributorId="editors.DataElemFormEditor"
> >
> <propertyCategory category="advanced"/>
> <propertyCategory category="callbacks"/>
> </propertyContributor>
> </extension>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertyTabs" >
> <propertyTabs contributorId="editors.DataElemFormEditor">
> <propertyTab
> afterTab="SpecCallbacks"
> category="advanced"
> id="SpecAdvanced"
> label="Advanced"/>
> <propertyTab
> category="callbacks"
> id="SpecCallbacks"
> label="Callbacks"/>
> </propertyTabs>
> </extension>
> <extension
> point="org.eclipse.ui.views.properties.tabbed.propertySections ">
> <propertySections contributorId="editors.DataElemFormEditor">
> <propertySection
> afterSection="SpecCallbacks"
>
> class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
> id="AdvancedSection"
> tab="SpecAdvanced">
> <input type="EObjectPropertySheetContentProvider"/>
> </propertySection>
> <propertySection
>
> class=" org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on "
> id="CallbacksSection"
> tab="SpecCallbacks">
> <input type="EObjectPropertySheetContentProvider2"/>
> </propertySection>
> </propertySections>
> </extension>
>
> </plugin>
Re: Mutliple Tabs not showing for Tabbed Properties view [message #645120 is a reply to message #316923] Wed, 15 December 2010 16:16 Go to previous message
Agustin  is currently offline Agustin
Messages: 26
Registered: November 2010
Location: Uruguay
Junior Member

Do you send entire code ? agu_7_7@hotmail.com thanks
Previous Topic:Eclipse APIs & API Graduation
Next Topic:Embarrassingly basic Eclipse-on-Mac q
Goto Forum:
  


Current Time: Sun Sep 21 06:18:08 GMT 2014

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

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