mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
71 lines
1.9 KiB
HTML
Executable file
71 lines
1.9 KiB
HTML
Executable file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html>
|
|
|
|
<head>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
|
|
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
|
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2002, 2006. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
|
|
<LINK REL="STYLESHEET" HREF="../../book.css" TYPE="text/css">
|
|
<title>DeveloperSystem Class After Editing</title>
|
|
</head>
|
|
|
|
<body bgcolor="#ffffff">
|
|
<h1>DeveloperSystem Class After Editing</h1>
|
|
<p>
|
|
<pre><samp>
|
|
package samples.subsystems;
|
|
|
|
import org.eclipse.core.runtime.IProgressMonitor;
|
|
|
|
import com.ibm.etools.systems.subsystems.SubSystem;
|
|
import com.ibm.etools.systems.subsystems.impl.AbstractSystem;
|
|
|
|
/**
|
|
* <i>Our system class that manages connecting to, and disconnecting from, our</i>
|
|
* <i>remote server-side code.</i>
|
|
*/
|
|
public class DeveloperSystem extends AbstractSystem
|
|
{
|
|
<b>private boolean connected = false;</b>
|
|
|
|
/**
|
|
* Constructor for DeveloperSystem.
|
|
* @param subsystem
|
|
*/
|
|
public DeveloperSystem(SubSystem subsystem)
|
|
{
|
|
super(subsystem);
|
|
}
|
|
|
|
/**
|
|
* @see com.ibm.etools.systems.subsystems.ISystem#isConnected()
|
|
*/
|
|
public boolean isConnected()
|
|
{
|
|
<b>return connected;</b>
|
|
}
|
|
|
|
/**
|
|
* @see com.ibm.etools.systems.subsystems.ISystem#connect(IProgressMonitor)
|
|
*/
|
|
public void connect(IProgressMonitor monitor) throws Exception
|
|
{
|
|
// <i>pretend. Normally, we'd connect to our remote server-side code here</i>
|
|
<b>connected = true;</b>
|
|
}
|
|
|
|
/**
|
|
* @see com.ibm.etools.systems.subsystems.ISystem#disconnect()
|
|
*/
|
|
public void disconnect() throws Exception
|
|
{
|
|
// <i>pretend. Normally, we'd disconnect from our remote server-side code here</i>
|
|
<b>connected = false;</b>
|
|
}
|
|
|
|
}
|
|
|
|
</samp></pre>
|
|
</p>
|
|
</body>
|
|
</html>
|