From a19090e01da73e9d45e83d95fc44ca8476792027 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 16 May 2007 19:38:22 +0000 Subject: [PATCH] [187205] don't expanded previously unexpanded node in refreshRemoteObject() --- .../UI/org/eclipse/rse/internal/ui/view/SystemView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java index 05ecf9b6332..0e1ffd2c16b 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemView.java @@ -2852,6 +2852,7 @@ public class SystemView extends SafeTreeViewer // a reference to this remote object if ((match instanceof TreeItem) && !((TreeItem) match).isDisposed()) { Object data = match.getData(); + boolean wasExpanded = ((TreeItem)match).getExpanded(); smartRefresh(new TreeItem[] { (TreeItem) match }); // refresh the remote object if (firstSelection && // for now, we just select the first binary occurrence we find (data == remoteObject)) // same binary object as given? @@ -2864,7 +2865,7 @@ public class SystemView extends SafeTreeViewer { allowExpand = rmtAdapter.hasChildren((IAdaptable)data); } - if (allowExpand && !getExpanded(match)) // assume if callers wants to select kids that they want to expand parent + if (allowExpand && wasExpanded && !getExpanded(match)) // assume if callers wants to select kids that they want to expand parent { createChildren(match); setExpanded(match, true);