Hi,
I'm not sure if this is the right group for my
problem, but I'm giving it a shot.
I'd like to remark that my view should be R1.0
compatible. I need to make a view like the
Packages view from the JDT plugin, but it must have a slightly different
structure. Down to the IJavaProject level everything is the same. The resources
in the project however, must be grouped as subnodes of my custom node
selectively (as user specifies), and there might be resources, that are not in
my custom treeviewer at all (if they are not selected in any of the groups).
Here is the desired structure:
* Java model
(IJavaModel) *Java project (IJavaProject)
--> * Group
(IGroup) - this is my custom node
package fragment root
(IPackageFragmentRoot)
package fragment
(IPackageFragment)
compilation unit (ICompilationUnit)
binary class file
(IClassFile)
Now, I've been trying for awhile to rewrite the
original org.eclipse.jdt.ui.JavaElementContentProvider and implement my
structure with some partial success, but I'm experiencing some nasty
difficulties (SWT/JFace architecture differs quite a lot
from AWT/Swing).
I would like to ask you for some suggestions or
recommendations for this task.
Am I doing it the right way (rewriting the
JavaElementContentProvider) ? Is there a mechanism in the Packages view, that
I'm missing, for insertion of custom nodes in the structure ? Did anyone do
something familiar to this, and what was the result?
Any comments or suggestions are very much
appreciated.
TIA.
Regards, Stefan
Take a moment - be
inspired.
|