# DeveloperConnectorService Class After Editing

    package samples.subsystems;

    import org.eclipse.core.runtime.IProgressMonitor;
    import org.eclipse.rse.core.subsystems.AbstractConnectorService;
    import org.eclipse.rse.core.model.IHost;

    import samples.RSESamplesPlugin;

    /**
     * Our system class that manages connecting to, and disconnecting from,
     * our remote server-side code.
     */
    public class DeveloperConnectorService extends AbstractConnectorService {

    	private boolean connected = false;

    	/**
    	 * Constructor for DeveloperConnectorService.
    	 * @param host
    	 */
    	public DeveloperConnectorService(IHost host)
    	{
    		super(
    			RSESamplesPlugin.getResourceString("connectorservice.devr.name"),
    			RSESamplesPlugin.getResourceString("connectorservice.devr.desc"),
    			host,
    			0
    		);
    	}

    	/* (non-Javadoc)
    	 * @see org.eclipse.rse.core.subsystems.IConnectorService#isConnected()
    	 */
    	public boolean isConnected()
    	{
    		return connected;
    	}

    	/* (non-Javadoc)
    	 * @see org.eclipse.rse.core.subsystems.AbstractConnectorService#internalConnect(org.eclipse.core.runtime.IProgressMonitor)
    	 */
    	protected void internalConnect(IProgressMonitor monitor) throws Exception
    	{
    		super.internalConnect(monitor);
    		// pretend. Normally, we'd connect to our remote server-side code here
    		connected=true;
    	}

    	/* (non-Javadoc)
    	 * @see org.eclipse.rse.core.subsystems.AbstractConnectorService#internalDisconnect(org.eclipse.core.runtime.IProgressMonitor)
    	 */
    	public void internalDisconnect(IProgressMonitor monitor) throws Exception
    	{
    		super.internalDisconnect(monitor);
    		// pretend. Normally, we'd disconnect from our remote server-side code here
    		connected=false;
    	}

    	/* (non-Javadoc)
    	 * @see org.eclipse.rse.core.subsystems.IConnectorService#supportsRemoteServerLaunching()
    	 */
    	public boolean supportsRemoteServerLaunching()
    	{
    		return false;
    	}

    	/* (non-Javadoc)
    	 * @see org.eclipse.rse.core.subsystems.IConnectorService#hasRemoteServerLauncherProperties()
    	 */
    	public boolean hasRemoteServerLauncherProperties()
    	{
    		return false;
    	}

    	/* (non-Javadoc)
    	 * @see org.eclipse.rse.core.subsystems.IConnectorService#supportsServerLaunchProperties()
    	 */
    	public boolean supportsServerLaunchProperties()
    	{
    		return false;
    	}

    }