[CNF] Link with editor / lazy tree & auto-expanding the tree [message #550161] |
Thu, 29 July 2010 08:09  |
Eclipse User |
|
|
|
Hello,
I got a little problem with Common Navigator Framework in a RCP project for which I haven't found any solution, but I am sure there is :
* I got a CNF viewer with many different content providers
* I implemented the "Link with editor" features by providing my ILinkHelper implementation
* I also have a "Open type" feature which can open editors on elements selected by the user from a search dialog (just like eclipse java ide : open type / open resource).
The problem is that the CNF tree is "virtual" and it loads tree contents in a lazy way. Therefore the "link with editor" feature does not work on tree items which never got expanded because CNF does not yet know which element there will be in the child tree.
My LinkHelper provides the appropriate selection from an editor input but the CNF cannot retrieve the selection in the tree because it would be in child content which has not yet been provided.
The perfect behaviour for me would be that when the "Link with editor" feature is active, opening an element through the "Open type" automatically expand the tree hierarchy in the navigator to reveal and then select the corresponding item.
Is there any way to do this ? (note that I do not want to load all the content only for this feature...). I looked in the Eclipse sources but cannot figure out how it is done in the project explorer / open type action. I think there is some existing features for this because it works perfectly well in the Eclipse Java IDE.
Thank you very much,
Christophe
http://www.nextep-softwares.com
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03764 seconds