Setting the Selection on a Deferred Content Provider [message #333686] |
Tue, 23 December 2008 05:17  |
Eclipse User |
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi guys,<br>
<br>
Do you know i could i set the selection on a tree that is not yet
completely loaded (since it is using a content provider based on <b>BaseWorkbenchContentProvider
</b>with elements implementing <b>IDeferredWorkbenchAdapter</b>) ?<br>
<br>
I do know the path to the object (in the tree) I want to select, I just
need to know how to actually go "under the wood" retrieve the
lazy-loading nodes on the background and after that, expand the correct
TreePath at once.<br>
<br>
Thanks a lot in advance.<br>
<br>
Cheers & Merry XMas!<br>
André<br>
</body>
</html>
|
|
|
Re: Setting the Selection on a Deferred Content Provider [message #333687 is a reply to message #333686] |
Tue, 23 December 2008 05:23  |
Eclipse User |
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I should add that I am actually using the <i>Common Navigator Framework</i>
for my tree explorer, which is already implementing the <b>ISetSelectionTarget
</b>interface.<br>
Can I take any use of this existing implementation? or should i just
re-implement the method <b>selectReveal()</b> method? Do you know of
some example for this use case?<br>
<br>
Thanks,<br>
AR<br>
<br>
André Ribeiro wrote:
<blockquote cite="mid:4950BAA0.4080806@gmail.com" type="cite">Hi guys,<br>
<br>
Do you know i could i set the selection on a tree that is not yet
completely loaded (since it is using a content provider based on <b>BaseWorkbenchContentProvider
</b>with elements implementing <b>IDeferredWorkbenchAdapter</b>) ?<br>
<br>
I do know the path to the object (in the tree) I want to select, I just
need to know how to actually go "under the wood" retrieve the
lazy-loading nodes on the background and after that, expand the correct
TreePath at once.<br>
<br>
Thanks a lot in advance.<br>
<br>
Cheers & Merry XMas!<br>
André<br>
</blockquote>
</body>
</html>
|
|
|
Powered by
FUDForum. Page generated in 0.06117 seconds