Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Setting the Selection on a Deferred Content Provider
Setting the Selection on a Deferred Content Provider [message #333686] Tue, 23 December 2008 10:17 Go to next message
Andre Ribeiro is currently offline Andre RibeiroFriend
Messages: 58
Registered: July 2009
Member
<!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 &amp; Merry XMas!<br>
Andr&eacute;<br>
</body>
</html>
Re: Setting the Selection on a Deferred Content Provider [message #333687 is a reply to message #333686] Tue, 23 December 2008 10:23 Go to previous message
Andre Ribeiro is currently offline Andre RibeiroFriend
Messages: 58
Registered: July 2009
Member
<!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&eacute; 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 &amp; Merry XMas!<br>
Andr&eacute;<br>
</blockquote>
</body>
</html>
Previous Topic:problem with the message: Cannot find 'org.junit.Test' on project build path
Next Topic:Editing posibility of interactive template lost when Eclipse loses focus
Goto Forum:
  


Current Time: Wed Apr 24 23:52:32 GMT 2024

Powered by FUDForum. Page generated in 0.02676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top