Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Refreshing Tree Viewer
Refreshing Tree Viewer [message #452667] Wed, 12 July 2006 05:06 Go to next message
Eclipse UserFriend
Originally posted by: Ravikala.kulal.gmail.com

Hi,

I have got v.strange problem in Tree Viewer.
When I apply refresh on Tree viwer with selection of one tree node,it
takes quite a long time and if I do same refresh without selecting a node
it performs within a fraction of second.

Only I could see the difference is in the first case StructuredViewer
class calls "handleInvalidSelection(ISelection invalidSelection,
ISelection newSelection)" of preservingSelection(Runnable updateCode) and
other case it won't.

And even I coudn't get the functionality of preservingSelection().
Is it for preserving the state of selection was there before to the after
refresh?But I coudn't find the same selection after refresh()--its not
select any of the node.

Thaks and Regards.
Re: Refreshing Tree Viewer [message #452710 is a reply to message #452667] Thu, 13 July 2006 10:50 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Log a bug report with a minimal snippet of code. Compontent is Platform/UI.

Tom

Ravikala wrote:
> Hi,
>
> I have got v.strange problem in Tree Viewer.
> When I apply refresh on Tree viwer with selection of one tree node,it
> takes quite a long time and if I do same refresh without selecting a
> node it performs within a fraction of second.
>
> Only I could see the difference is in the first case StructuredViewer
> class calls "handleInvalidSelection(ISelection invalidSelection,
> ISelection newSelection)" of preservingSelection(Runnable updateCode)
> and other case it won't.
>
> And even I coudn't get the functionality of preservingSelection().
> Is it for preserving the state of selection was there before to the
> after refresh?But I coudn't find the same selection after refresh()--its
> not select any of the node.
>
> Thaks and Regards.
>
>
>
>
Previous Topic:Update problems
Next Topic:Language pack and menu entries
Goto Forum:
  


Current Time: Thu Oct 03 19:58:55 GMT 2024

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

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

Back to the top