mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
[194897] Should not remote refresh objects above the subsystem
This commit is contained in:
parent
812fdcd906
commit
05d2355302
1 changed files with 6 additions and 6 deletions
|
@ -29,7 +29,7 @@
|
|||
* Martin Oberhuber (Wind River) - [186991] Avoid remote refresh if no element is remote
|
||||
* Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core
|
||||
* Kevin Doyle (IBM) - [194602] handleDoubleClick does expand/collapse on treepath instead of element
|
||||
* David McKnight (IBM) - [194897] Should not remote refresh non-remote objects.
|
||||
* David McKnight (IBM) - [194897] Should not remote refresh objects above subsystem.
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -2106,9 +2106,9 @@ public class SystemView extends SafeTreeViewer
|
|||
case ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE:
|
||||
if (debug) logDebugMsg("SV event: EVENT_REFRESH_REMOTE: src = " + src); //$NON-NLS-1$
|
||||
|
||||
// only do this if the object is "remote"
|
||||
|
||||
ISystemViewElementAdapter adapter = getViewAdapter(src);
|
||||
if (adapter != null && adapter.isRemote(src))
|
||||
if (adapter != null)
|
||||
{
|
||||
// we need to refresh filters
|
||||
ISystemRegistry sr = RSECorePlugin.getTheSystemRegistry();
|
||||
|
@ -2129,7 +2129,7 @@ public class SystemView extends SafeTreeViewer
|
|||
// if it's a container, just pass into refreshRemoteObject
|
||||
// if it's NOT a container, pass in it's parent
|
||||
boolean hasChildren = adapter.hasChildren((IAdaptable)src);
|
||||
if (!hasChildren)
|
||||
if (!hasChildren && !(src instanceof ISubSystem))
|
||||
{
|
||||
// make the src the parent of the src
|
||||
Object srcParent = adapter.getParent(src);
|
||||
|
@ -2140,8 +2140,8 @@ public class SystemView extends SafeTreeViewer
|
|||
}
|
||||
else
|
||||
{
|
||||
|
||||
//if (adapter.isRemote(src))
|
||||
// only do this if the object is "remote"
|
||||
if (adapter.isRemote(src))
|
||||
{
|
||||
// get up-to-date version of the container (need to make sure it still exists)
|
||||
if (ss == null)
|
||||
|
|
Loading…
Add table
Reference in a new issue