|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A VM connector establishes a JDI connection with a debuggable virtual machine. This extension point provides a mechanism for abstracting the connection to a remote virtual machine.
A VM connector extension is defined in plugin.xml
.
Following is an example definition of a VM connector extension.
<extension point="org.eclipse.jdt.launching.vmConnectors"> <vmConnector id="com.example.VMConnector" class="com.example.VMConnectorClass" </vmConnector> </extension>The attributes are specified as follows:
id
specifies a unique identifier for this VM connector.class
specifies the fully qualified name of the Java class
that implements IVMConnector
.
Method Summary | |
void |
connect(Map arguments,
IProgressMonitor monitor,
ILaunch launch)
Establishes a JDI connection with a debuggable VM using the arguments specified in the given map, contributing results (debug targets and processes), to the given launch. |
List |
getArgumentOrder()
Returns a list of argument names found in this connector's default argument map, defining the order in which arguments should be presented to the user. |
Map |
getDefaultArguments()
Returns a map of default arguments used by this connector. |
String |
getIdentifier()
Returns a unique indentifier for this kind of connector. |
String |
getName()
Returns the name of this connector. |
Method Detail |
public void connect(Map arguments, IProgressMonitor monitor, ILaunch launch) throws CoreException
arguments
- Argument map to use in establishing a connection. The keys of
the map are strings corresponding to the names of arguments returned by this
connector's getDefaultAgruments()
method. The values of the map
are strings corresponding to the (String) values of the asscoiated
com.sun.jdi.connect.Connector.Argument
s to use.monitor
- progress monitorlaunch
- launch to contribute debug target(s) and/or process(es) to
CoreException
- if unable to establish a connection with the target VMpublic String getName()
public String getIdentifier()
public Map getDefaultArguments() throws CoreException
com.sun.jdi.connect.Connector.Argument
.
CoreException
- if unable to retrieve a default argument mappublic List getArgumentOrder()
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |