Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding functionality to the NavigatorView
Adding functionality to the NavigatorView [message #447934] Tue, 18 April 2006 08:46
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
Hi all,
thanks for helping me.

I would like to add a custom functionality to the Navigator View.
Here is what I mean:
I have a file with the extension - ".rwo"
This file contains elements of type "Item" (Item is a custom type of mine)
I would like the navigator view to show the elements of the .rwo file in
the same manner as the Package Explorer shows the types and method in a
".java" file.

Is it possible to achive this using the extension point:
org.eclipse.ui.navigator.navigatorContent.

I dont fully understand how to use this extension point, but dispite that
I've tried to make an extension of this extension point.

This is the declaration of the extension:

<extension
point="org.eclipse.ui.navigator.navigatorContent">
<navigatorContent
activeByDefault="true"
contentProvider="mypackage.RWOFileContentProvider"
id="mypackage.navigatorContent1"
labelProvider="mypackage.RWOFileLabelProvider"
name="Content Extension"
priority="highest">
<triggerPoints>
<or>
<instanceof
value="org.eclipse.core.resources.IFile"/>
</or>
</triggerPoints>
</navigatorContent>
</extension>

The mypackage.RWOFileContentProvider implements ITreeContentProvider.
The mypackage.RWOFileLabelProvider implements ILabelProvider.

What I was expecting after declaring such an extension is when the
Navigator is about to show an element of type
org.eclipse.core.resources.IFile, to ask mypakcage.RWOFileContentProvider
about the children of the file and the labels of this children.
But this is not the case, so I assume I am missing something or I do not
understand the idea...


Thanks in advanced.
Previous Topic:How to associate a tree node double click action to a menu item action?
Next Topic:Is it possible to use the IDE plugins in an RCP application?
Goto Forum:
  


Current Time: Tue Dec 03 02:40:30 GMT 2024

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

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

Back to the top