Lines 100-105
Link Here
|
100 |
import org.netbeans.modules.cnd.utils.cache.CndFileUtils; |
100 |
import org.netbeans.modules.cnd.utils.cache.CndFileUtils; |
101 |
import org.netbeans.modules.nativeexecution.api.ExecutionEnvironment; |
101 |
import org.netbeans.modules.nativeexecution.api.ExecutionEnvironment; |
102 |
import org.netbeans.modules.nativeexecution.api.ExecutionEnvironmentFactory; |
102 |
import org.netbeans.modules.nativeexecution.api.ExecutionEnvironmentFactory; |
|
|
103 |
import org.netbeans.modules.nativeexecution.api.util.ConnectionManager; |
104 |
import org.netbeans.modules.nativeexecution.api.util.ConnectionManager.CancellationException; |
103 |
import org.netbeans.modules.remote.spi.FileSystemProvider; |
105 |
import org.netbeans.modules.remote.spi.FileSystemProvider; |
104 |
import org.netbeans.spi.java.classpath.ClassPathFactory; |
106 |
import org.netbeans.spi.java.classpath.ClassPathFactory; |
105 |
import org.netbeans.spi.java.classpath.ClassPathImplementation; |
107 |
import org.netbeans.spi.java.classpath.ClassPathImplementation; |
Lines 1139-1144
Link Here
|
1139 |
|
1141 |
|
1140 |
private synchronized void onProjectOpened() { |
1142 |
private synchronized void onProjectOpened() { |
1141 |
if (!isOpenHookDone) { |
1143 |
if (!isOpenHookDone) { |
|
|
1144 |
FileObject dir = getProjectDirectory(); |
1145 |
if (dir != null) { // high resistance mode paranoia |
1146 |
ExecutionEnvironment env = FileSystemProvider.getExecutionEnvironment(dir); |
1147 |
if (env != null && env.isRemote()) { |
1148 |
try { |
1149 |
ConnectionManager.getInstance().connectTo(env); |
1150 |
} catch (IOException ex) { |
1151 |
|
1152 |
} catch (CancellationException ex) { |
1153 |
// don't log CancellationException |
1154 |
} |
1155 |
} |
1156 |
} |
1142 |
helper.addMakeProjectListener(MakeProject.this); |
1157 |
helper.addMakeProjectListener(MakeProject.this); |
1143 |
checkNeededExtensions(); |
1158 |
checkNeededExtensions(); |
1144 |
if (openedTasks != null) { |
1159 |
if (openedTasks != null) { |