|CNF Content Provider IFiles [message #898354]
||Thu, 26 July 2012 05:17
| Mat Mathiew
Registered: July 2012
I have my own Content Navigator with custom Content and Label Provider.
I have declare classes to represent the different items of the custom project e.g.
My problem is that I want also except of this folder structure to dynamically add files (IFiles) to the folders.I created a new wizard to do that but these IFiles dont appear in the folders. The files are created ok since i can see them in eclipse standard navigator.
I added as trigger Points and possibleChildren the IFile
following the eclipse help page
but the ContentNavigator never gets called for an IFile.
name="Custom Navigator Content"
Is this the correct way to declare the IFile Element in the content provider?
Any suggestions of what is the problem..?
I tried also adding a new content extension to the content of type:
<contentExtension pattern="org.eclipse.ui.navigator.resourceContent" />
and although i can see that the navigator has as content Resources and the Custom Navigator Content still the IFiles dont appear...
Another idea is to create a new CustomElement and IFile will be just a property of that element but i am not sure how to dynamically add a new CustomElement as a child in the ContentProvider.
[Updated on: Thu, 26 July 2012 06:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01477 seconds