Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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;
	}

}


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire