public class JavaAppletLaunchConfigurationDelegate extends JavaLaunchDelegate
| Constructor and Description |
|---|
JavaAppletLaunchConfigurationDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getAppletMainTypeName(ILaunchConfiguration configuration)
Returns the applet's main type name.
|
protected java.io.File |
getDefaultWorkingDirectory(ILaunchConfiguration configuration)
Returns the default working directory for the given launch configuration,
or
null if none. |
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
|
java.lang.String |
getMainTypeName(ILaunchConfiguration configuration)
Returns the main type name specified by the given launch configuration,
or
null if none. |
java.lang.String |
getProgramArguments(ILaunchConfiguration configuration)
Returns the program arguments specified by the given launch
configuration, as a string.
|
java.lang.String |
getVMArguments(ILaunchConfiguration configuration)
Returns the VM arguments specified by the given launch configuration, as
a string.
|
void |
handleDebugEvents(DebugEvent[] events)
Handles the "stop-in-main" option.
|
void |
launch(ILaunchConfiguration configuration,
java.lang.String mode,
ILaunch launch,
IProgressMonitor monitor) |
abort, getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getClasspath, getClasspathAndModulepath, getEnvironment, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getProjectsForProblemSearch, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMRunner, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, setDefaultSourceLocator, verifyJavaProject, verifyMainTypeName, verifyVMInstall, verifyWorkingDirectorypublic JavaAppletLaunchConfigurationDelegate()
public void launch(ILaunchConfiguration configuration,
java.lang.String mode,
ILaunch launch,
IProgressMonitor monitor)
throws CoreException
launch in class JavaLaunchDelegateCoreExceptionpublic java.lang.String getJavaPolicyFile(java.io.File workingDir)
workingDir - the working directorypublic void handleDebugEvents(DebugEvent[] events)
AbstractJavaLaunchConfigurationDelegatehandleDebugEvents in class AbstractJavaLaunchConfigurationDelegateevents - the debug events.org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(DebugEvent[])protected static byte[] getFileByteContent(java.io.File file)
throws java.io.IOException
file - the filejava.io.IOException - if a problem occurred reading the file.protected static byte[] getInputStreamAsByteArray(java.io.InputStream stream,
int length)
throws java.io.IOException
stream - the streamlength - the length to readjava.io.IOException - if a problem occurred reading the stream.public java.lang.String getProgramArguments(ILaunchConfiguration configuration)
throws CoreException
AbstractJavaLaunchConfigurationDelegategetProgramArguments in class AbstractJavaLaunchConfigurationDelegateconfiguration - launch configurationCoreException - if unable to retrieve the attributepublic java.lang.String getVMArguments(ILaunchConfiguration configuration)
throws CoreException
AbstractJavaLaunchConfigurationDelegategetVMArguments in class AbstractJavaLaunchConfigurationDelegateconfiguration - launch configurationCoreException - if unable to retrieve the attributepublic java.lang.String getMainTypeName(ILaunchConfiguration configuration)
throws CoreException
AbstractJavaLaunchConfigurationDelegatenull if none.getMainTypeName in class AbstractJavaLaunchConfigurationDelegateconfiguration - launch configurationnull if noneCoreException - if unable to retrieve the attributeprotected java.lang.String getAppletMainTypeName(ILaunchConfiguration configuration)
throws CoreException
configuration - the configCoreException - if a problem occursprotected java.io.File getDefaultWorkingDirectory(ILaunchConfiguration configuration)
throws CoreException
AbstractJavaLaunchConfigurationDelegatenull if none. Subclasses may override as necessary.getDefaultWorkingDirectory in class AbstractJavaLaunchConfigurationDelegateconfiguration - the confignull if noneCoreException - if an exception occurs computing the default working
directory