public abstract class AbstractPDELaunchConfiguration extends LaunchConfigurationDelegate
Clients may subclass this class.
| Modifier and Type | Field and Description |
|---|---|
protected File |
fConfigDir |
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus| Constructor and Description |
|---|
AbstractPDELaunchConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected IProject[] |
getBuildOrder(ILaunchConfiguration configuration,
String mode) |
String[] |
getClasspath(ILaunchConfiguration configuration)
Returns the entries that should appear on boot classpath.
|
protected File |
getConfigDir(ILaunchConfiguration configuration)
Returns the configuration area specified by the given launch
configuration.
|
String[] |
getEnvironment(ILaunchConfiguration configuration)
Returns an array of environment variables to be used when
launching the given configuration or
null if unspecified. |
String[] |
getProgramArguments(ILaunchConfiguration configuration)
Returns the program arguments to launch with.
|
protected IProject[] |
getProjectsForProblemSearch(ILaunchConfiguration configuration,
String mode) |
String[] |
getVMArguments(ILaunchConfiguration configuration)
Returns the VM arguments specified by the given launch configuration, as
an array of strings.
|
IVMRunner |
getVMRunner(ILaunchConfiguration configuration,
String mode)
Returns the VM runner for the given launch mode to use when launching the
given configuration.
|
Map |
getVMSpecificAttributesMap(ILaunchConfiguration configuration)
Returns the Map of VM-specific attributes specified by the given launch
configuration, or
null if none. |
File |
getWorkingDirectory(ILaunchConfiguration configuration)
Returns the working directory path specified by the given launch
configuration, or
null if none. |
void |
launch(ILaunchConfiguration configuration,
String mode,
ILaunch launch,
IProgressMonitor monitor) |
protected abstract void |
preLaunchCheck(ILaunchConfiguration configuration,
ILaunch launch,
IProgressMonitor monitor)
Does sanity checking before launching.
|
protected void |
setDefaultSourceLocator(ILaunchConfiguration configuration)
Assigns a default source locator to the given launch if a source locator
has not yet been assigned to it, and the associated launch configuration
does not specify a source locator.
|
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getBreakpoints, getLaunch, isLaunchProblem, preLaunchCheck, saveBeforeLaunchprotected File fConfigDir
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException
CoreExceptionpublic IVMRunner getVMRunner(ILaunchConfiguration configuration, String mode) throws CoreException
configuration - launch configurationmode - launch nodeCoreException - if a VM runner cannot be determinedprotected void setDefaultSourceLocator(ILaunchConfiguration configuration) throws CoreException
configuration - configuration being launchedCoreException - if unable to set the source locatorpublic String[] getClasspath(ILaunchConfiguration configuration) throws CoreException
configuration - launch configurationCoreException - if unable to find startup.jarpublic String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException
null if unspecified.configuration - launch configurationCoreException - if unable to access associated attribute or if
unable to resolve a variable in an environment variable's valuepublic File getWorkingDirectory(ILaunchConfiguration configuration) throws CoreException
null if none.configuration - launch configurationnull if noneCoreException - if unable to retrieve the attributepublic Map getVMSpecificAttributesMap(ILaunchConfiguration configuration) throws CoreException
null if none.configuration - launch configurationMap of VM-specific attributesCoreException - if unable to retrieve the attributepublic String[] getVMArguments(ILaunchConfiguration configuration) throws CoreException
configuration - launch configurationCoreException - if unable to retrieve the attributepublic String[] getProgramArguments(ILaunchConfiguration configuration) throws CoreException
configuration - launch configurationnullCoreException - if unable to retrieve the attribute or if self-hosting could not
proceed due to a bad setup, missing plug-ins, inability to create the
necessary configuration files.protected abstract void preLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException
configuration - launch configurationlaunch - the launch object to contribute processes and debug targets tomonitor - a progress monitorCoreException - exception thrown if launch fails or if unable to retrieve attributes
from the launch configurationprotected File getConfigDir(ILaunchConfiguration configuration)
configuration - launch configurationprotected IProject[] getBuildOrder(ILaunchConfiguration configuration, String mode) throws CoreException
getBuildOrder in class LaunchConfigurationDelegateCoreExceptionprotected IProject[] getProjectsForProblemSearch(ILaunchConfiguration configuration, String mode) throws CoreException
getProjectsForProblemSearch in class LaunchConfigurationDelegateCoreExceptionCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.