mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 18:15:23 +02:00
Use new RSE API for empty password (bug 142471, 147532)
This commit is contained in:
parent
e78d5135b6
commit
562d491620
2 changed files with 43 additions and 24 deletions
|
@ -43,32 +43,12 @@ public class SftpFileSubSystemConfiguration extends FileServiceSubSystemConfigur
|
||||||
return isFor;
|
return isFor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean supportsArchiveManagement() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ISubSystem createSubSystemInternal(IHost host) {
|
public ISubSystem createSubSystemInternal(IHost host) {
|
||||||
SshConnectorService connectorService = (SshConnectorService)getConnectorService(host);
|
SshConnectorService connectorService = (SshConnectorService)getConnectorService(host);
|
||||||
ISubSystem subsys = new FileServiceSubSystem(host, connectorService, getFileService(host), getHostFileAdapter(), getSearchService(host));
|
ISubSystem subsys = new FileServiceSubSystem(host, connectorService, getFileService(host), getHostFileAdapter(), getSearchService(host));
|
||||||
return subsys;
|
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) {
|
public IConnectorService getConnectorService(IHost host) {
|
||||||
return SshConnectorServiceManager.getInstance().getConnectorService(host, getServiceImplType());
|
return SshConnectorServiceManager.getInstance().getConnectorService(host, getServiceImplType());
|
||||||
}
|
}
|
||||||
|
@ -94,6 +74,10 @@ public class SftpFileSubSystemConfiguration extends FileServiceSubSystemConfigur
|
||||||
return _hostFileAdapter;
|
return _hostFileAdapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Class getServiceImplType() {
|
||||||
|
return ISshService.class;
|
||||||
|
}
|
||||||
|
|
||||||
public IHostSearchResultConfiguration createSearchConfiguration(IHost host, IHostSearchResultSet resultSet, Object searchTarget, SystemSearchString searchString) {
|
public IHostSearchResultConfiguration createSearchConfiguration(IHost host, IHostSearchResultSet resultSet, Object searchTarget, SystemSearchString searchString) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -102,8 +86,33 @@ public class SftpFileSubSystemConfiguration extends FileServiceSubSystemConfigur
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Class getServiceImplType() {
|
public boolean supportsArchiveManagement() {
|
||||||
return ISshService.class;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,9 +75,19 @@ public class SshShellSubSystemConfiguration extends
|
||||||
return ISshService.class;
|
return ISshService.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IServiceCommandShell createRemoteCommandShell(IRemoteCmdSubSystem cmdSS, IHostShell hostShell)
|
public IServiceCommandShell createRemoteCommandShell(IRemoteCmdSubSystem cmdSS, IHostShell hostShell) {
|
||||||
{
|
|
||||||
return new SshServiceCommandShell(cmdSS, 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue