Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JFace Treeviewer refresh collapses the tree nodes
JFace Treeviewer refresh collapses the tree nodes [message #326557] Tue, 25 March 2008 10:42 Go to next message
Eclipse UserFriend
Originally posted by: chandra.mayamuthu.gmail.com

Hi All,
I have a problem on refreshing the tree while sorting. The previous
states(expand and collapse) of the tree nodes are not restored properly
after refresh. The refresh method call collapses the tree unconditionally.
Please help me solve this issue


Thanks,
Chandra M
Re: JFace Treeviewer refresh collapses the tree nodes [message #326563 is a reply to message #326557] Tue, 25 March 2008 11:10 Go to previous messageGo to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
You could try using IResource.refreshLocal(int depth, IProgressMonitor
monitor) on the project/folder/file individually.

"Chandra " <chandra.mayamuthu@gmail.com> wrote in message
news:7a5f917ff3e070939332f782b3e1645a$1@www.eclipse.org...
> Hi All,
> I have a problem on refreshing the tree while sorting. The previous
> states(expand and collapse) of the tree nodes are not restored properly
> after refresh. The refresh method call collapses the tree unconditionally.
> Please help me solve this issue
>
>
> Thanks,
> Chandra M
>
Re: JFace Treeviewer refresh collapses the tree nodes [message #326568 is a reply to message #326563] Tue, 25 March 2008 12:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------000803020608050705000000
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Rahul,

Somehow I don't think this relates to the original question about
refreshing a tree view as opposed to refreshing the workspace.

Chandra,

In my experience, refresh would only collapse the tree if the object has
disappeared. But then I haven't tried sorting. There are more fine
grained methods like add/remove that you might use to refresh the view
if you know specifically what's changed...


Rahul Kamdar wrote:
> You could try using IResource.refreshLocal(int depth, IProgressMonitor
> monitor) on the project/folder/file individually.
>
> "Chandra " <chandra.mayamuthu@gmail.com> wrote in message
> news:7a5f917ff3e070939332f782b3e1645a$1@www.eclipse.org...
>
>> Hi All,
>> I have a problem on refreshing the tree while sorting. The previous
>> states(expand and collapse) of the tree nodes are not restored properly
>> after refresh. The refresh method call collapses the tree unconditionally.
>> Please help me solve this issue
>>
>>
>> Thanks,
>> Chandra M
>>
>>
>
>
>


--------------000803020608050705000000
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!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">
Rahul,<br>
<br>
Somehow I don't think this relates to the original question about
refreshing a tree view as opposed to refreshing the workspace.<br>
<br>
Chandra,<br>
<br>
In my experience, refresh would only collapse the tree if the object
has disappeared.&nbsp; But then I haven't tried sorting.&nbsp; There are more
fine grained methods like add/remove that you might use to refresh the
view if you know specifically what's changed...<br>
<br>
<br>
Rahul Kamdar wrote:
<blockquote cite="mid:fsamis$an5$1@build.eclipse.org" type="cite">
<pre wrap="">You could try using IResource.refreshLocal(int depth, IProgressMonitor
monitor) on the project/folder/file individually.

"Chandra " <a class="moz-txt-link-rfc2396E" href="mailto:chandra.mayamuthu@gmail.com">&lt;chandra.mayamuthu@gmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:7a5f917ff3e070939332f782b3e1645a$1@www.eclipse.org">news:7a5f917ff3e070939332f782b3e1645a$1@www.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Hi All,
I have a problem on refreshing the tree while sorting. The previous
states(expand and collapse) of the tree nodes are not restored properly
after refresh. The refresh method call collapses the tree unconditionally.
Please help me solve this issue


Thanks,
Chandra M

</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------000803020608050705000000--
Re: JFace Treeviewer refresh collapses the tree nodes [message #326577 is a reply to message #326557] Tue, 25 March 2008 15:54 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
We have an open bug about this, if you refer to the fact that refresh() will
not preserve the complete expansion state of the tree when the sort order
changes.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=113675, it explains how to
work around this bug.

Boris

"Chandra " <chandra.mayamuthu@gmail.com> wrote in message
news:7a5f917ff3e070939332f782b3e1645a$1@www.eclipse.org...
> Hi All,
> I have a problem on refreshing the tree while sorting. The previous
> states(expand and collapse) of the tree nodes are not restored properly
> after refresh. The refresh method call collapses the tree unconditionally.
> Please help me solve this issue
>
>
> Thanks,
> Chandra M
>
Re: JFace Treeviewer refresh collapses the tree nodes [message #326642 is a reply to message #326577] Thu, 27 March 2008 10:56 Go to previous message
Eclipse UserFriend
Originally posted by: chandra.mayamuthu.gmail.com

Thanks Boris
Previous Topic:createInitialLayout method not called when initializing a new perspective
Next Topic:Tooltips possible for EMF objects in properties view?
Goto Forum:
  


Current Time: Wed Jul 03 10:25:38 GMT 2024

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

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

Back to the top