Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse PDE
Release 3.5

org.eclipse.pde.ui.launcher
Class JUnitLaunchConfigurationDelegate


java.lang.Object
  extended by 

org.eclipse.debug.core.model.LaunchConfigurationDelegate
      extended by 

org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
          extended by 

org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate
              extended by 
org.eclipse.pde.ui.launcher.JUnitLaunchConfigurationDelegate
All Implemented Interfaces:
IDebugEventSetListener, ILaunchConfigurationDelegate, ILaunchConfigurationDelegate2

public class JUnitLaunchConfigurationDelegate
extends JUnitLaunchConfigurationDelegate

A launch delegate for launching JUnit Plug-in tests.

Since:
3.3

Field Summary
protected   File fConfigDir
           
 
Fields inherited from class org.eclipse.debug.core.model. LaunchConfigurationDelegate
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
 
Constructor Summary
JUnitLaunchConfigurationDelegate ()
           
 
Method Summary
protected  void abort ( String message, Throwable exception, int code)
           
protected  void clear ( ILaunchConfiguration configuration, IProgressMonitor monitor)
          Clears the workspace prior to launching if the workspace exists and the option to clear it is turned on.
protected  void collectExecutionArguments ( ILaunchConfiguration configuration, List vmArguments, List programArgs)
           
protected   String getApplication ( ILaunchConfiguration configuration)
          Returns the application to launch plug-in tests with
protected   IProject[] getBuildOrder ( ILaunchConfiguration configuration, String mode)
           
  String[] getClasspath ( ILaunchConfiguration configuration)
           
protected   File getConfigurationDirectory ( ILaunchConfiguration configuration)
          Returns the location of the configuration area
  String[] getEnvironment ( ILaunchConfiguration configuration)
           
  String getProgramArguments ( ILaunchConfiguration configuration)
           
protected   IProject[] getProjectsForProblemSearch ( ILaunchConfiguration configuration, String mode)
           
  String getVMArguments ( ILaunchConfiguration configuration)
           
  IVMRunner getVMRunner ( ILaunchConfiguration configuration, String mode)
           
  Map getVMSpecificAttributesMap ( ILaunchConfiguration configuration)
           
  File getWorkingDirectory ( ILaunchConfiguration configuration)
           
protected  void manageLaunch ( 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 ( ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor)
           
protected  void setDefaultSourceLocator ( ILaunch launch, ILaunchConfiguration configuration)
           
protected  void synchronizeManifests ( ILaunchConfiguration configuration, IProgressMonitor monitor)
          Checks for old-style plugin.xml files that have become stale since the last launch.
protected  void validatePluginDependencies ( ILaunchConfiguration configuration, IProgressMonitor monitor)
          Validates inter-bundle dependencies automatically prior to launching if that option is turned on.
protected  void validateProjectDependencies ( ILaunchConfiguration configuration, IProgressMonitor monitor)
          Checks if the Automated Management of Dependencies option is turned on.
  String verifyMainTypeName ( ILaunchConfiguration configuration)
           
 
Methods inherited from class org.eclipse.jdt.junit.launcher. JUnitLaunchConfigurationDelegate
evaluateTests, launch
 
Methods inherited from class org.eclipse.jdt.launching. AbstractJavaLaunchConfigurationDelegate
getBootpath, getBootpathExt, getBreakpoints, getDefaultWorkingDirectory, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, verifyJavaProject, verifyVMInstall, verifyWorkingDirectory
 
Methods inherited from class org.eclipse.debug.core.model. LaunchConfigurationDelegate
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunch
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fConfigDir

protected 
File fConfigDir
Constructor Detail

JUnitLaunchConfigurationDelegate

public JUnitLaunchConfigurationDelegate()
Method Detail

getVMRunner

public 
IVMRunner getVMRunner(
ILaunchConfiguration configuration,
                             
String mode)
                      throws 
CoreException
Overrides:
getVMRunner in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

verifyMainTypeName

public 
String verifyMainTypeName(
ILaunchConfiguration configuration)
                          throws 
CoreException
Overrides:
verifyMainTypeName in class JUnitLaunchConfigurationDelegate
Throws:
CoreException

abort

protected void abort(
String message,
                     
Throwable exception,
                     int code)
              throws 
CoreException
Overrides:
abort in class JUnitLaunchConfigurationDelegate
Throws:
CoreException

collectExecutionArguments

protected void collectExecutionArguments(
ILaunchConfiguration configuration,
                                         
List vmArguments,
                                         
List programArgs)
                                  throws 
CoreException
Overrides:
collectExecutionArguments in class JUnitLaunchConfigurationDelegate
Throws:
CoreException

getApplication

protected 
String getApplication(
ILaunchConfiguration configuration)
Returns the application to launch plug-in tests with

Parameters:
configuration -
Returns:
the application
Since:
3.5

getProgramArguments

public 
String getProgramArguments(
ILaunchConfiguration configuration)
                           throws 
CoreException
Overrides:
getProgramArguments in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

getVMArguments

public 
String getVMArguments(
ILaunchConfiguration configuration)
                      throws 
CoreException
Overrides:
getVMArguments in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

getEnvironment

public 
String[] getEnvironment(
ILaunchConfiguration configuration)
                        throws 
CoreException
Overrides:
getEnvironment in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

getClasspath

public 
String[] getClasspath(
ILaunchConfiguration configuration)
                      throws 
CoreException
Overrides:
getClasspath in class JUnitLaunchConfigurationDelegate
Throws:
CoreException

getWorkingDirectory

public 
File getWorkingDirectory(
ILaunchConfiguration configuration)
                         throws 
CoreException
Overrides:
getWorkingDirectory in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

getVMSpecificAttributesMap

public 
Map getVMSpecificAttributesMap(
ILaunchConfiguration configuration)
                               throws 
CoreException
Overrides:
getVMSpecificAttributesMap in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

setDefaultSourceLocator

protected void setDefaultSourceLocator(
ILaunch launch,
                                       
ILaunchConfiguration configuration)
                                throws 
CoreException
Overrides:
setDefaultSourceLocator in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

getConfigurationDirectory

protected 
File getConfigurationDirectory(
ILaunchConfiguration configuration)
Returns the location of the configuration area

Parameters:
configuration - the launch configuration
Returns:
a directory where the configuration area is located

getBuildOrder

protected 
IProject[] getBuildOrder(
ILaunchConfiguration configuration,
                                   
String mode)
                            throws 
CoreException
Overrides:
getBuildOrder in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

getProjectsForProblemSearch

protected 
IProject[] getProjectsForProblemSearch(
ILaunchConfiguration configuration,
                                                 
String mode)
                                          throws 
CoreException
Overrides:
getProjectsForProblemSearch in class AbstractJavaLaunchConfigurationDelegate
Throws:
CoreException

manageLaunch

protected void manageLaunch(
ILaunch launch)
Adds a listener to the launch to be notified at interesting launch lifecycle events such as when the launch terminates.

Parameters:
launch - the launch

preLaunchCheck

protected void preLaunchCheck(
ILaunchConfiguration configuration,
                              
ILaunch launch,
                              
IProgressMonitor monitor)
                       throws 
CoreException
Overrides:
preLaunchCheck in class JUnitLaunchConfigurationDelegate
Throws:
CoreException

synchronizeManifests

protected void synchronizeManifests(
ILaunchConfiguration configuration,
                                    
IProgressMonitor monitor)
Checks for old-style plugin.xml files that have become stale since the last launch. For any stale plugin.xml files found, the corresponding MANIFEST.MF is deleted from the runtime configuration area so that it gets regenerated upon startup.

Parameters:
configuration - the launch configuration
monitor - the progress monitor

clear

protected void clear(
ILaunchConfiguration configuration,
                     
IProgressMonitor monitor)
              throws 
CoreException
Clears the workspace prior to launching if the workspace exists and the option to clear it is turned on. Also clears the configuration area if that option is chosen.

Parameters:
configuration - the launch configuration
monitor - the progress monitor
Throws:
CoreException - if unable to retrieve launch attribute values
Since:
3.3

validateProjectDependencies

protected void validateProjectDependencies(
ILaunchConfiguration configuration,
                                           
IProgressMonitor monitor)
Checks if the Automated Management of Dependencies option is turned on. If so, it makes aure all manifests are updated with the correct dependencies.

Parameters:
configuration - the launch configuration
monitor - a progress monitor

validatePluginDependencies

protected void validatePluginDependencies(
ILaunchConfiguration configuration,
                                          
IProgressMonitor monitor)
                                   throws 
CoreException
Validates inter-bundle dependencies automatically prior to launching if that option is turned on.

Parameters:
configuration - the launch configuration
monitor - a progress monitor
Throws:
CoreException

Eclipse PDE
Release 3.5

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire