Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [CNF] Tabbed Properties in Common Navigator
[CNF] Tabbed Properties in Common Navigator [message #335276] Mon, 30 March 2009 14:39 Go to next message
Andreas Schoeneck is currently offline Andreas SchoeneckFriend
Messages: 22
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------070407030702030705070708
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hi!

I am stuck with a little problem regarding CNF and the tabbed properties
view. As I have found out, I have to register a contributor in
plugin.xml that has the same id as the CommonViewer. I followed the
Tabbed Properties article on the eclipse site, bit didn't manage to get
it work. Debugging showed that neither the Contributor's nor the
Section's code is actually invoked at any time.

The effect is that I get the properties view showing the well-known
"Properties are not available"

My plugin.xml is like this (only showing relevant parts):

[...]
<view allowMultiple="false"
category="org.example.my.mycat"
class="org.eclipse.ui.navigator.CommonNavigator"
icon="icons/application_side_tree.png"
id="org.example.my.mynavigator"
name="My Example Navigator"
restorable="true">
</view>
[...]
<propertyContributor contributorId="org.example.my.mynavigator">
<propertyCategory category="org.example.my.test">
</propertyCategory>
</propertyContributor>
[...]
<propertyTabs contributorId="org.example.my.mynavigator">
<propertyTab
category="org.example.my.test"
id="org.example.my.mynavigator.propertyTab1"
image="icons/item.png"
label="A tab">
</propertyTab>
</propertyTabs>
[...]
<propertySections contributorId="org.example.my.mynavigator">
<propertySection
class="org.example.my.NavPropSection"
id="org.example.my.navisection"
tab="org.example.my.mynavigator.propertyTab1">
</propertySection>
</propertySections>
[...]

Hopefully I didn't miss anything. I have created a contributor class,
but that seems redundant, since it is not registered anywhere in the
plugin.xml. I also tried an approach with an AdapterFactory that didn't
work either.

Can anyone help me? Or point me to the right direction?
That would be greatly appreciated.

Thanks in advance

Regards
Andreas

--------------070407030702030705070708
Content-Type: text/x-vcard; charset=utf-8;
name="as_maps.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="as_maps.vcf"

begin:vcard
fn:Andreas Schoeneck
n:Schoeneck;Andreas
email;internet:as.maps@gmail.com
x-mozilla-html:FALSE
version:2.1
end:vcard


--------------070407030702030705070708--
Re: [CNF] Tabbed Properties in Common Navigator [message #335293 is a reply to message #335276] Tue, 31 March 2009 10:14 Go to previous message
Andreas Schoeneck is currently offline Andreas SchoeneckFriend
Messages: 22
Registered: July 2009
Junior Member
What I missed was the input element under propertySection...

Andreas Schoeneck schrieb:
> Hi!
>
> I am stuck with a little problem regarding CNF and the tabbed properties
> view. As I have found out, I have to register a contributor in
> plugin.xml that has the same id as the CommonViewer. I followed the
> Tabbed Properties article on the eclipse site, bit didn't manage to get
> it work. Debugging showed that neither the Contributor's nor the
> Section's code is actually invoked at any time.
>
> The effect is that I get the properties view showing the well-known
> "Properties are not available"
>
> My plugin.xml is like this (only showing relevant parts):
>
> [...]
> <view allowMultiple="false"
> category="org.example.my.mycat"
> class="org.eclipse.ui.navigator.CommonNavigator"
> icon="icons/application_side_tree.png"
> id="org.example.my.mynavigator"
> name="My Example Navigator"
> restorable="true">
> </view>
> [...]
> <propertyContributor contributorId="org.example.my.mynavigator">
> <propertyCategory category="org.example.my.test">
> </propertyCategory>
> </propertyContributor>
> [...]
> <propertyTabs contributorId="org.example.my.mynavigator">
> <propertyTab
> category="org.example.my.test"
> id="org.example.my.mynavigator.propertyTab1"
> image="icons/item.png"
> label="A tab">
> </propertyTab>
> </propertyTabs>
> [...]
> <propertySections contributorId="org.example.my.mynavigator">
> <propertySection
> class="org.example.my.NavPropSection"
> id="org.example.my.navisection"
> tab="org.example.my.mynavigator.propertyTab1">
> </propertySection>
> </propertySections>
> [...]
>
> Hopefully I didn't miss anything. I have created a contributor class,
> but that seems redundant, since it is not registered anywhere in the
> plugin.xml. I also tried an approach with an AdapterFactory that didn't
> work either.
>
> Can anyone help me? Or point me to the right direction?
> That would be greatly appreciated.
>
> Thanks in advance
>
> Regards
> Andreas
Previous Topic:Delete project takes long time
Next Topic:Register a "New Wizard" programmatically?
Goto Forum:
  


Current Time: Thu Dec 26 14:04:15 GMT 2024

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

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

Back to the top