|
Eclipse PDE Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.debug.core.model.LaunchConfigurationDelegate
org.eclipse.pde.launching.AbstractPDELaunchConfiguration
public abstract class AbstractPDELaunchConfiguration
An abstract launch delegate for PDE-based launch configurations
Clients may subclass this class.
This class originally existed in 3.2 as
org.eclipse.pde.ui.launcher.AbstractPDELaunchConfiguration.
| Field Summary | |
|---|---|
protected File |
fConfigDir
|
| Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
|---|
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus |
| Constructor Summary | |
|---|---|
AbstractPDELaunchConfiguration()
|
|
| Method Summary | |
|---|---|
protected void |
clear(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
By default, this method does nothing. |
protected org.eclipse.core.resources.IProject[] |
getBuildOrder(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
|
String[] |
getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the entries that should appear on boot classpath. |
protected File |
getConfigDir(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the configuration area specified by the given launch configuration. |
String[] |
getEnvironment(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns an array of environment variables to be used when launching the given configuration or null if unspecified. |
String |
getMainClass()
Returns the fully-qualified name of the class to launch. |
String[] |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the program arguments to launch with. |
protected org.eclipse.core.resources.IProject[] |
getProjectsForProblemSearch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
|
String[] |
getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the VM arguments specified by the given launch configuration, as an array of strings. |
IVMRunner |
getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
Returns the VM runner for the given launch mode to use when launching the given configuration. |
Map |
getVMSpecificAttributesMap(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the Map of VM-specific attributes specified by the given launch configuration, or null if none. |
File |
getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
Returns the working directory path specified by the given launch configuration, or null if none. |
protected boolean |
isLaunchProblem(org.eclipse.core.resources.IMarker problemMarker)
|
void |
launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
manageLaunch(org.eclipse.debug.core.ILaunch launch)
Adds a listener to the launch to be notified at interesting launch lifecycle events such as when the launch terminates. |
protected void |
preLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
Does sanity checking before launching. |
protected void |
setDefaultSourceLocator(org.eclipse.debug.core.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. |
protected void |
synchronizeManifests(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Checks for old-style plugin.xml files that have become stale since the last launch. |
protected void |
validatePluginDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Validates inter-bundle dependencies automatically prior to launching if that option is turned on. |
protected void |
validateProjectDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Checks if the Automated Management of Dependencies option is turned on. |
| Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
|---|
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getBreakpoints, getLaunch, preLaunchCheck, saveBeforeLaunch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File fConfigDir
| Constructor Detail |
|---|
public AbstractPDELaunchConfiguration()
| Method Detail |
|---|
protected boolean isLaunchProblem(org.eclipse.core.resources.IMarker problemMarker)
throws org.eclipse.core.runtime.CoreException
isLaunchProblem in class org.eclipse.debug.core.model.LaunchConfigurationDelegateorg.eclipse.core.runtime.CoreException
public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public IVMRunner getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
throws org.eclipse.core.runtime.CoreException
configuration - launch configurationmode - launch node
org.eclipse.core.runtime.CoreException - if a VM runner cannot be determined
protected void setDefaultSourceLocator(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - configuration being launched
org.eclipse.core.runtime.CoreException - if unable to set the source locator
public String[] getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException - if unable to find startup.jar
public String[] getEnvironment(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
null if unspecified.
configuration - launch configuration
org.eclipse.core.runtime.CoreException - if unable to access associated attribute or if
unable to resolve a variable in an environment variable's value
public File getWorkingDirectory(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
null if none.
configuration - launch configuration
null if none
org.eclipse.core.runtime.CoreException - if unable to retrieve the attribute
public Map getVMSpecificAttributesMap(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
null if none.
configuration - launch configuration
Map of VM-specific attributes
org.eclipse.core.runtime.CoreException - if unable to retrieve the attribute
public String[] getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException - if unable to retrieve the attribute
public String[] getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration)
throws org.eclipse.core.runtime.CoreException
configuration - launch configuration
org.eclipse.core.runtime.CoreException - if unable to retrieve the attribute or create the
necessary configuration files
protected void preLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - launch configurationlaunch - the launch object to contribute processes and debug targets tomonitor - a progress monitor
org.eclipse.core.runtime.CoreException - exception thrown if launch fails or canceled or if unable to retrieve attributes
from the launch configurationprotected File getConfigDir(org.eclipse.debug.core.ILaunchConfiguration configuration)
configuration - launch configuration
protected org.eclipse.core.resources.IProject[] getBuildOrder(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
throws org.eclipse.core.runtime.CoreException
getBuildOrder in class org.eclipse.debug.core.model.LaunchConfigurationDelegateorg.eclipse.core.runtime.CoreException
protected org.eclipse.core.resources.IProject[] getProjectsForProblemSearch(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
throws org.eclipse.core.runtime.CoreException
getProjectsForProblemSearch in class org.eclipse.debug.core.model.LaunchConfigurationDelegateorg.eclipse.core.runtime.CoreExceptionpublic String getMainClass()
null.protected void manageLaunch(org.eclipse.debug.core.ILaunch launch)
launch - the launch
protected void synchronizeManifests(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
configuration - the launch configurationmonitor - a progress monitor
protected void validateProjectDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
configuration - the launch configurationmonitor - a progress monitor
protected void clear(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - the launch configurationmonitor - the progress monitor
org.eclipse.core.runtime.CoreException - if unable to retrieve launch attribute values
protected void validatePluginDependencies(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
configuration - the launch configurationmonitor - a progress monitor
org.eclipse.core.runtime.CoreException
|
Eclipse PDE Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.