blob: 5a2d8c89157fbeaa0cf32c628abdb616331be62f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<!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>DeveloperConnectorService Class After Editing</title>
</head>
<body>
<h1>DeveloperConnectorService Class After Editing</h1>
<pre><samp>
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 {
<strong>private boolean connected = false;</strong>
/**
* 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;
}
}
</samp></pre>
</body>
</html>
|