JFace Treeviewer refresh collapses the tree nodes [message #326557] |
Tue, 25 March 2008 06:42  |
Eclipse User |
|
|
|
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 #326568 is a reply to message #326563] |
Tue, 25 March 2008 08:44   |
Eclipse User |
|
|
|
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. 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...<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"><chandra.mayamuthu@gmail.com></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--
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03320 seconds