org.apache.commons.jelly.eclipse.ui
Class JellyLaunchConfigurationDelegate

java.lang.Object
  extended byorg.eclipse.debug.core.model.LaunchConfigurationDelegate
      extended byorg.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
          extended byorg.apache.commons.jelly.eclipse.ui.JellyLaunchConfigurationDelegate
All Implemented Interfaces:
org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.ILaunchConfigurationDelegate, org.eclipse.debug.core.model.ILaunchConfigurationDelegate2

public class JellyLaunchConfigurationDelegate
extends org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate

Standard Eclipse Launch Configuration Delegate class, that's installed by the plugin.

Since Jelly is a Java application, the launch process for Jelly is simply the launch of a Java application. Therefore the launch configuration for Jelly contains all attributes, a Java application has in the Eclipse workbench. The only additional attributes are the Jelly script file path and the output file path of the Jelly script.

Since:
0.9
Author:
Jürgen Mayrbäurl
See Also:
JellyLaunchConfigurationConstants

Field Summary
 
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
complileErrorPromptStatus, promptStatus, switchToDebugPromptStatus
 
Constructor Summary
JellyLaunchConfigurationDelegate()
           
 
Method Summary
 java.io.File getOutputFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Gets and verifies the file path of the output file of the Jelly script from the launch configuration
 org.eclipse.core.runtime.IPath getOutputFilePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Returns the path of the output file of the Jelly script in the Eclipse workspace
 java.io.File getScriptFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Gets and verifies the file path of the Jelly script file from the launch configuration
 org.eclipse.core.runtime.IPath getScriptFilePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Returns the path of the Jelly script file in the Eclipse workspace
 void launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  java.io.File verifyOutputFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Reads the file path of the output file of the Jelly script from the launch configuration and verifies that the path exists and is the path of a file
protected  java.io.File verifyScriptFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Reads the file path of the Jelly script from the launch configuration and verifies that the path exists and is the path of a file.
 
Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
abort, getBootpath, getBootpathExt, getBuildOrder, getClasspath, getJavaProject, getJavaProjectName, getLaunchManager, getMainTypeName, getProgramArguments, getProjectsForProblemSearch, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, setDefaultSourceLocator, verifyJavaProject, verifyMainTypeName, verifyVMInstall, verifyWorkingDirectory
 
Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate
addReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JellyLaunchConfigurationDelegate

public JellyLaunchConfigurationDelegate()
Method Detail

launch

public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
                   java.lang.String mode,
                   org.eclipse.debug.core.ILaunch launch,
                   org.eclipse.core.runtime.IProgressMonitor monitor)
            throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

getScriptFile

public java.io.File getScriptFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
                           throws org.eclipse.core.runtime.CoreException
Gets and verifies the file path of the Jelly script file from the launch configuration

Parameters:
configuration - Eclipse launch configuration object
Returns:
Jelly script file
Throws:
org.eclipse.core.runtime.CoreException - from Eclipse platform
See Also:
verifyScriptFile

getOutputFile

public java.io.File getOutputFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
                           throws org.eclipse.core.runtime.CoreException
Gets and verifies the file path of the output file of the Jelly script from the launch configuration

Parameters:
configuration - Eclipse launch configuration object
Returns:
output file for the Jelly script
Throws:
org.eclipse.core.runtime.CoreException - from Eclipse platform
See Also:
verifyOutputFile

verifyScriptFile

protected java.io.File verifyScriptFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                 throws org.eclipse.core.runtime.CoreException
Reads the file path of the Jelly script from the launch configuration and verifies that the path exists and is the path of a file. If no Jelly script file is specified in the launch configuration or if the script file doesn't exist, aborts the launching process.

Parameters:
configuration - Eclipse launch configuration object
Returns:
Jelly script file
Throws:
org.eclipse.core.runtime.CoreException - from Eclipse platform

verifyOutputFile

protected java.io.File verifyOutputFile(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                 throws org.eclipse.core.runtime.CoreException
Reads the file path of the output file of the Jelly script from the launch configuration and verifies that the path exists and is the path of a file

Parameters:
configuration - Eclipse launch configuration object
Returns:
output file of the Jelly script
Throws:
org.eclipse.core.runtime.CoreException - from Eclipse platform

getScriptFilePath

public org.eclipse.core.runtime.IPath getScriptFilePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                 throws org.eclipse.core.runtime.CoreException
Returns the path of the Jelly script file in the Eclipse workspace

Parameters:
configuration - Eclipse launch configuration object
Returns:
Eclipse IPath path object for the Jelly script file in the workspace
Throws:
org.eclipse.core.runtime.CoreException - from Eclipse platform

getOutputFilePath

public org.eclipse.core.runtime.IPath getOutputFilePath(org.eclipse.debug.core.ILaunchConfiguration configuration)
                                                 throws org.eclipse.core.runtime.CoreException
Returns the path of the output file of the Jelly script in the Eclipse workspace

Parameters:
configuration - Eclipse launch configuration object
Returns:
Eclipse IPath path object for the output file of the Jelly script in the workspace
Throws:
org.eclipse.core.runtime.CoreException - from Eclipse platform


Copyright © 2004 Juergen Mayrbaeurl. All Rights Reserved.