[hg] releases: Fixed noIZ: still refreshing with -J-Dcnd.remote....

  • From: Vladimir Kvashin < >
  • To:
  • Subject: [hg] releases: Fixed noIZ: still refreshing with -J-Dcnd.remote....
  • Date: Fri, 21 Dec 2012 14:09:57 -0800

changeset 3de5d2c07b4e in releases ((none))
details: http://hg.netbeans.org/releases/rev/3de5d2c07b4e
description:
        Fixed noIZ: still refreshing with 
-J-Dcnd.remote.refresh.on.connect=false

diffstat:

 
dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RefreshManager.java
  |  2 +-
 
dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RemoteDirectory.java
 |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff --git 
a/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RefreshManager.java
 
b/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RefreshManager.java
--- 
a/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RefreshManager.java
+++ 
b/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RefreshManager.java
@@ -75,7 +75,7 @@
     private final Object queueLock = new Object();
     
     private static final boolean REFRESH_ON_FOCUS = 
getBoolean("cnd.remote.refresh.on.focus", true); //NOI18N
-    private static final boolean REFRESH_ON_CONNECT = 
getBoolean("cnd.remote.refresh.on.connect", true); //NOI18N
+    public static final boolean REFRESH_ON_CONNECT = 
getBoolean("cnd.remote.refresh.on.connect", true); //NOI18N
 
     private final class RefreshWorker implements Runnable {
         private final boolean expected;
diff --git 
a/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RemoteDirectory.java
 
b/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RemoteDirectory.java
--- 
a/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RemoteDirectory.java
+++ 
b/dlight.remote.impl/src/org/netbeans/modules/remote/impl/fs/RemoteDirectory.java
@@ -97,7 +97,7 @@
     /*package*/ RemoteDirectory(RemoteFileObject wrapper, RemoteFileSystem 
fileSystem, ExecutionEnvironment execEnv,
             RemoteFileObjectBase parent, String remotePath, File cache) {
         super(wrapper, fileSystem, execEnv, parent, remotePath, cache);
-        if (cache.exists() && 
ConnectionManager.getInstance().isConnectedTo(execEnv)) {
+        if (RefreshManager.REFRESH_ON_CONNECT && cache.exists() && 
ConnectionManager.getInstance().isConnectedTo(execEnv)) {
             // see issue #210125 Remote file system does not refresh 
directory that wasn't instantiated at connect time
             
fileSystem.getRefreshManager().scheduleRefresh(Arrays.<RemoteFileObjectBase>asList(this),
 false);
         }

[hg] releases: Fixed noIZ: still refreshing with -J-Dcnd.remote....

Vladimir Kvashin 12/21/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close