Adding functionality to the NavigatorView [message #447934] |
Tue, 18 April 2006 08:46 |
kiril mitov 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03089 seconds