org.eclipse.tptp.trace.ui.internal.launcher.deleg.application
Class AbstractJavaAppletDelegate
java.lang.Object
org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJavaDelegate
org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.AbstractJavaAppletDelegate
- All Implemented Interfaces:
- org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorBaseLauncher, org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorMutualLauncher, org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorProcessLauncher, org.eclipse.tptp.trace.ui.provisional.launcher.IParameterExtractor
- Direct Known Subclasses:
- AgentDiscovererJavaAppletDelegate, InstrumentJavaAppletLauncherDelegate, PIJavaAppletLauncherDelegate, TIInstrumentJavaAppletLauncherDelegate, TIJavaAppletDelegate
public class AbstractJavaAppletDelegate
- extends AbstractJavaDelegate
- implements org.eclipse.debug.core.IDebugEventSetListener
| Fields inherited from class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher |
conf, node |
|
Method Summary |
protected static byte[] |
getFileByteContent(java.io.File file)
Returns the contents of the given file as a byte array. |
protected static byte[] |
getInputStreamAsByteArray(java.io.InputStream stream,
int length)
Returns the given input stream's contents as a byte array. |
java.lang.String |
getJavaPolicyFile(java.io.File workingDir)
Returns the system property string for the policy file |
protected java.util.ArrayList |
getLaunchTypeWorkspaceFilters(org.eclipse.debug.core.ILaunchConfiguration config)
|
protected java.lang.String |
getMainTypeName(org.eclipse.debug.core.ILaunchConfiguration conf)
|
protected java.lang.String |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration conf)
|
protected java.lang.String |
getVMArguments(org.eclipse.debug.core.ILaunchConfiguration conf)
|
protected java.lang.String |
getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration conf)
|
void |
handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
|
void |
preLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
| Methods inherited from class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher |
configureProcess, createAgent, createNode, createProcess, getAgentName, getAgentType, getClassPath, getClasspathString, getHostName, getLocation, getPortNumber, getProcessParameters, getProfileFile, isMutualLauncher, isProcessLauncher, postLaunch |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJavaAppletDelegate
public AbstractJavaAppletDelegate(java.lang.String agentName,
java.lang.String agentType)
preLaunch
public void preLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Specified by:
preLaunch in interface org.eclipse.tptp.trace.ui.provisional.launcher.IDataCollectorMutualLauncher- Overrides:
preLaunch in class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
- Throws:
org.eclipse.core.runtime.CoreException
getWorkingDirectory
protected java.lang.String getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration conf)
- Overrides:
getWorkingDirectory in class AbstractJavaDelegate
getProgramArguments
protected java.lang.String getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration conf)
- Overrides:
getProgramArguments in class AbstractJavaDelegate
getMainTypeName
protected java.lang.String getMainTypeName(org.eclipse.debug.core.ILaunchConfiguration conf)
- Overrides:
getMainTypeName in class AbstractJavaDelegate
getVMArguments
protected java.lang.String getVMArguments(org.eclipse.debug.core.ILaunchConfiguration conf)
- Overrides:
getVMArguments in class AbstractJavaDelegate
handleDebugEvents
public void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
- Specified by:
handleDebugEvents in interface org.eclipse.debug.core.IDebugEventSetListener
getJavaPolicyFile
public java.lang.String getJavaPolicyFile(java.io.File workingDir)
- Returns the system property string for the policy file
- Parameters:
workingDir - the working directory
- Returns:
- system property for the policy file
getFileByteContent
protected static byte[] getFileByteContent(java.io.File file)
throws java.io.IOException
- Returns the contents of the given file as a byte array.
- Throws:
java.io.IOException - if a problem occured reading the file.
getInputStreamAsByteArray
protected static byte[] getInputStreamAsByteArray(java.io.InputStream stream,
int length)
throws java.io.IOException
- Returns the given input stream's contents as a byte array.
If a length is specified (ie. if length != -1), only length bytes
are returned. Otherwise all bytes in the stream are returned.
Note this doesn't close the stream.
- Throws:
java.io.IOException - if a problem occured reading the stream.
getLaunchTypeWorkspaceFilters
protected java.util.ArrayList getLaunchTypeWorkspaceFilters(org.eclipse.debug.core.ILaunchConfiguration config)
throws org.eclipse.core.runtime.CoreException
- Overrides:
getLaunchTypeWorkspaceFilters in class org.eclipse.tptp.trace.ui.provisional.launcher.AbstractProcessLauncher
- Throws:
org.eclipse.core.runtime.CoreException