public abstract class IlrDVSLaunchConfigurationDelegate
extends org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
Subclass IlrDVSLaunchConfigurationDelegate when you implement a
DVS launch configuration.
| Constructor and Description |
|---|
IlrDVSLaunchConfigurationDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRulesetParameterVerbalization(IlrRuleProject ruleProject,
org.w3c.dom.Document document) |
protected void |
copyImagesForReport(java.lang.String destFilePath)
Copies the images that will be displayed in the HTML report.
|
protected java.lang.String |
generateRulesetArchive(java.lang.String workingDir,
java.lang.String ruleprojectName,
boolean useExtractor,
java.lang.String extractorName)
Generates a ruleset archive from a rule project and an extractor.
|
protected java.lang.String |
getAbsolutePath(java.lang.String fullpath)
Returns the absolute path from a file path relative to the Eclipse
workspace.
|
protected boolean |
getValue(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String attribute,
boolean defaultValue)
Reads the value of a configuration attribute.
|
protected java.lang.String |
getValue(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String attribute,
java.lang.String defaultValue)
Reads the value of a configuration attribute.
|
org.eclipse.jdt.launching.IVMRunner |
getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
Returns the virtual machine runner used to launch a given
configuration in a specific launch mode.
|
protected java.util.Set<org.eclipse.core.resources.IResource> |
getWorkspaceResourcesToRefresh(org.eclipse.debug.core.ILaunch launch) |
protected void |
run(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.String mainClass,
java.lang.String[] customParams)
Runs the given DVS configuration in the specified mode, contributing
debug targets and/or processes to the given launch object.
|
abort, getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getClasspath, getDefaultWorkingDirectory, getEnvironment, getJavaLibraryPath, 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, verifyWorkingDirectoryaddReferencedProjects, buildForLaunch, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, finalLaunchCheck, getLaunch, saveBeforeLaunchpublic org.eclipse.jdt.launching.IVMRunner getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode)
throws org.eclipse.core.runtime.CoreException
getVMRunner in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegateorg.eclipse.core.runtime.CoreException - if the virtual machine runner cannot be found.configuration - The launch configuration.mode - The launch node.configuration in mode.protected java.lang.String generateRulesetArchive(java.lang.String workingDir,
java.lang.String ruleprojectName,
boolean useExtractor,
java.lang.String extractorName)
workingDir.workingDir - The absolute path to the directory in which the
temporary ruleset archive will be generated.ruleprojectName - The name of the rule project this ruleset archive
is generated for.useExtractor - Set to true if an extractor must be
used when the ruleset archive is generated.extractorName - The name of the extractor to use when
useExtractor is set to true.protected java.lang.String getAbsolutePath(java.lang.String fullpath)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException - if there is a problem generating the absolute file
path.fullpath - The file path relative to the workspace.protected void run(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.String mainClass,
java.lang.String[] customParams)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException - if run fails.configuration - The configuration to launch.mode - The mode in which to launch, one of the mode constants
defined by ILaunchManager -
RUN_MODE or DEBUG_MODE.launch - The launch object to contribute processes and debug
targets to.monitor - Progress monitor, or null progress monitor, or null. A cancelable progress
monitor is provided by the Job framework. It should be noted that the setCanceled(boolean) method should
never be called on the provided monitor or the monitor passed to any delegates from this method. Due to a
limitation in the progress monitor framework, using the setCanceled method can cause entire workspace batch
jobs to be canceled, as the canceled flag is propagated up the top-level parent monitor.
The provided monitor is not guaranteed to have been started.mainClass - The fully qualified name of the class to launch. May not be null.customParams - The list of custom parameters.protected java.util.Set<org.eclipse.core.resources.IResource> getWorkspaceResourcesToRefresh(org.eclipse.debug.core.ILaunch launch)
protected java.lang.String getValue(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String attribute,
java.lang.String defaultValue)
configuration - The configuration containing the attributes.attribute - The attribute to read.defaultValue - The value to return if attribute is not
found.attribute or defaultValue
if attribute is not found.protected boolean getValue(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String attribute,
boolean defaultValue)
configuration - The configuration containing the attributes.attribute - The attribute to read.defaultValue - The value to return if attribute is not
found.attribute or defaultValue
if attribute is not found.protected void copyImagesForReport(java.lang.String destFilePath)
destFilePath - The path where the report will be generated.protected void addRulesetParameterVerbalization(IlrRuleProject ruleProject, org.w3c.dom.Document document)
© Copyright IBM Corp. 1987, 2017