[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Can I hide the file items while showing the sub-tree beneath them on the navigator?

Thanks Alex.

I noticed that the generated ???NavigatorContentProvider.getChildren(Object 
parentElement) method
is called only when the parent node is a file node. But I need to change the 
path when the folder node is the parentElement.
I add if(parentElement instanceof IFolder) to the getChildren(Object) 
method, but nothing changed.
I also changed the extension point "navagatorContent", but the result wasn't 
satisfied.
Maybe I made some mistakes. I don't know how to change the tree structure 
when the current parentElement is already a
file node.
Can you give me some more details?
That will be very grateful.

-----------------
nemo


"Alex Shatalin" <vano@xxxxxxxxxxx> wrote in message 
news:3c3172e6ef708c906f2007d57a4@xxxxxxxxxxxxxxxxxxx
> Hello nemo,
> Are you going to display this sub-tree directly below the filder node 
> containing the model file? File nodes are provided to navigator by 
> standard file-folder provider, so the only one way to hide something from 
> there is to use filters for Project Explorer. If you have to put all the 
> diagram contents below any other navigator node you should modify 
> generated ???NavigatorContentProvider.getChildren(Object parentElement) 
> method. In particular - if (parentElement instanceof IFile) branch.
>
> -----------------
> Alex Shatalin
>
>