Eclipse PDE
Release 3.2

org.eclipse.pde.ui.launcher
Class EclipseApplicationLaunchConfiguration

java.lang.Object
  extended byorg.eclipse.debug.core.model.LaunchConfigurationDelegate
      extended byorg.eclipse.pde.ui.launcher.AbstractPDELaunchConfiguration
          extended byorg.eclipse.pde.ui.launcher.EclipseApplicationLaunchConfiguration
All Implemented Interfaces:
ILaunchConfigurationDelegate, ILaunchConfigurationDelegate2

public class EclipseApplicationLaunchConfiguration
extends AbstractPDELaunchConfiguration

A launch delegate for launching Eclipse applications

Clients may subclass and instantiate this class.

Since:
3.2

Field Summary
 
Fields inherited from class org.eclipse.pde.ui.launcher.AbstractPDELaunchConfiguration
fConfigDir
 
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
 
Constructor Summary
EclipseApplicationLaunchConfiguration()
           
 
Method Summary
protected  File getConfigDir(ILaunchConfiguration config)
          Returns the configuration area specified by the given launch configuration.
 String[] getProgramArguments(ILaunchConfiguration configuration)
          Returns the program arguments to launch with.
protected  void preLaunchCheck(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor)
          Prompts and clears the workspace area and/or the configuration area, if appropriate
 
Methods inherited from class org.eclipse.pde.ui.launcher.AbstractPDELaunchConfiguration
getBuildOrder, getClasspath, getEnvironment, getProjectsForProblemSearch, getVMArguments, getVMRunner, getVMSpecificAttributesMap, getWorkingDirectory, launch, setDefaultSourceLocator
 
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getBreakpoints, getLaunch, isLaunchProblem, preLaunchCheck, saveBeforeLaunch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseApplicationLaunchConfiguration

public EclipseApplicationLaunchConfiguration()
Method Detail

getProgramArguments

public String[] getProgramArguments(ILaunchConfiguration configuration)
                             throws CoreException
Description copied from class: AbstractPDELaunchConfiguration
Returns the program arguments to launch with. This list is a combination of arguments computed by PDE based on attributes specified in the given launch configuration, followed by the program arguments that the entered directly into the launch configuration. This computation may require user interaction (i.e an answer to a question), etc. If the answer is to not proceed, then this method returns null.

Overrides:
getProgramArguments in class AbstractPDELaunchConfiguration
Parameters:
configuration - launch configuration
Returns:
the program arguments necessar for launching or null
Throws:
CoreException - 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.

getConfigDir

protected File getConfigDir(ILaunchConfiguration config)
Description copied from class: AbstractPDELaunchConfiguration
Returns the configuration area specified by the given launch configuration.

Overrides:
getConfigDir in class AbstractPDELaunchConfiguration
Parameters:
config - launch configuration
Returns:
the directory path specified by the given launch configuration

preLaunchCheck

protected void preLaunchCheck(ILaunchConfiguration configuration,
                              ILaunch launch,
                              IProgressMonitor monitor)
                       throws CoreException
Prompts and clears the workspace area and/or the configuration area, if appropriate

Specified by:
preLaunchCheck in class AbstractPDELaunchConfiguration
Parameters:
configuration - launch configuration
launch - the launch object to contribute processes and debug targets to
monitor - a progress monitor
Throws:
CoreException - exception thrown if launch fails or if unable to retrieve attributes from the launch configuration
See Also:
AbstractPDELaunchConfiguration.preLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor)

Eclipse PDE
Release 3.2

Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.