1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

Use new RSE API for empty password (bug 142471, 147532)

This commit is contained in:
Martin Oberhuber 2006-08-11 12:10:24 +00:00
parent e78d5135b6
commit 562d491620
2 changed files with 43 additions and 24 deletions

View file

@ -43,32 +43,12 @@ public class SftpFileSubSystemConfiguration extends FileServiceSubSystemConfigur
return isFor;
}
public boolean supportsArchiveManagement() {
return false;
}
public ISubSystem createSubSystemInternal(IHost host) {
SshConnectorService connectorService = (SshConnectorService)getConnectorService(host);
ISubSystem subsys = new FileServiceSubSystem(host, connectorService, getFileService(host), getHostFileAdapter(), getSearchService(host));
return subsys;
}
public boolean supportsFileTypes() {
return false;
}
public boolean supportsSearch() {
return false;
}
public boolean supportsEnvironmentVariablesPropertyPage() {
return false;
}
public boolean supportsFilters() {
return true;
}
public IConnectorService getConnectorService(IHost host) {
return SshConnectorServiceManager.getInstance().getConnectorService(host, getServiceImplType());
}
@ -94,6 +74,10 @@ public class SftpFileSubSystemConfiguration extends FileServiceSubSystemConfigur
return _hostFileAdapter;
}
public Class getServiceImplType() {
return ISshService.class;
}
public IHostSearchResultConfiguration createSearchConfiguration(IHost host, IHostSearchResultSet resultSet, Object searchTarget, SystemSearchString searchString) {
return null;
}
@ -102,8 +86,33 @@ public class SftpFileSubSystemConfiguration extends FileServiceSubSystemConfigur
return null;
}
public Class getServiceImplType() {
return ISshService.class;
public boolean supportsArchiveManagement() {
return false;
}
public boolean supportsFileTypes() {
return false;
}
public boolean supportsSearch() {
return false;
}
public boolean supportsEnvironmentVariablesPropertyPage() {
return false;
}
public boolean supportsFilters() {
return true;
}
/**
* Ssh allows authentification through public key, so the password
* can be empty.
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#requiresPassword()
*/
public boolean requiresPassword() {
return false;
}
}

View file

@ -75,9 +75,19 @@ public class SshShellSubSystemConfiguration extends
return ISshService.class;
}
public IServiceCommandShell createRemoteCommandShell(IRemoteCmdSubSystem cmdSS, IHostShell hostShell)
{
public IServiceCommandShell createRemoteCommandShell(IRemoteCmdSubSystem cmdSS, IHostShell hostShell) {
return new SshServiceCommandShell(cmdSS, hostShell);
}
/**
* Ssh allows authentification through public key, so the password
* can be empty.
* @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#requiresPassword()
*/
public boolean requiresPassword() {
return false;
}
}