mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
look for active connection for host before inactive
This commit is contained in:
parent
5230031f6d
commit
20df494a4a
1 changed files with 4 additions and 1 deletions
|
@ -63,6 +63,7 @@ public class RSEFileSystem extends FileSystem
|
|||
{
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IHost[] connections = sr.getHosts();
|
||||
IHost unconnected = null;
|
||||
for (int i = 0; i < connections.length; i++)
|
||||
{
|
||||
IHost con = connections[i];
|
||||
|
@ -77,9 +78,11 @@ public class RSEFileSystem extends FileSystem
|
|||
}
|
||||
if (isConnected)
|
||||
return con;
|
||||
else
|
||||
unconnected = con;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return unconnected;
|
||||
}
|
||||
|
||||
public static IRemoteFileSubSystem getRemoteFileSubSystem(IHost host)
|
||||
|
|
Loading…
Add table
Reference in a new issue