1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 10:05:24 +02:00

Bug 150902: Disconnect contextmenu should not be shown for "Local" systems. Took out both connect and disconnect actions for Local subsystems for files, shells and processes.

This commit is contained in:
Kushal Munir 2006-10-18 14:05:22 +00:00
parent 53cfed7107
commit e2c6dca5a0
3 changed files with 24 additions and 0 deletions

View file

@ -186,6 +186,14 @@ public class LocalFileSubSystemConfiguration extends FileServiceSubSystemConfigu
return true;
}
/**
* Returns <code>false</code>.
* @see org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration#supportsSubSystemConnect()
*/
public boolean supportsSubSystemConnect() {
return false;
}
public IConnectorService getConnectorService(IHost host)
{
return LocalConnectorServiceManager.getTheLocalSystemManager().getConnectorService(host, getServiceImplType());

View file

@ -85,6 +85,14 @@ public class LocalProcessSubSystemConfiguration extends ProcessServiceSubSystemC
return true;
}
/**
* Returns <code>false</code>.
* @see org.eclipse.rse.subsystems.processes.core.subsystem.impl.RemoteProcessSubSystemConfiguration#supportsSubSystemConnect()
*/
public boolean supportsSubSystemConnect() {
return false;
}
/* (non-Javadoc)
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.model.IHost)
*/

View file

@ -88,6 +88,14 @@ public class LocalShellSubSystemConfiguration extends ShellServiceSubSystemConfi
return false;
}
/**
* Returns <code>false</code>
* @see org.eclipse.rse.internal.subsystems.shells.subsystems.RemoteCmdSubSystemConfiguration#supportsSubSystemConnect()
*/
public boolean supportsSubSystemConnect() {
return false;
}
public IConnectorService getConnectorService(IHost host)
{
return LocalConnectorServiceManager.getTheLocalSystemManager().getConnectorService(host, getServiceImplType());