|
Rule Designer API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.debug.core.model.LaunchConfigurationDelegate org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate ilog.rules.studio.dvs.execution.IlrDVSLaunchConfigurationDelegate
public abstract class IlrDVSLaunchConfigurationDelegate
The abstract implementation of a DVS launch configuration delegate. This class provides convenience methods used to access and verify launch configuration attributes.
Subclass IlrDVSLaunchConfigurationDelegate
when you implement a
DVS launch configuration.
Field Summary |
---|
Fields inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate |
---|
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus |
Constructor Summary | |
---|---|
IlrDVSLaunchConfigurationDelegate()
|
Method Summary | |
---|---|
protected void |
copyImagesForReport(String destFilePath)
Copies the images that will be displayed in the HTML report. |
protected String |
generateRulesetArchive(String workingDir,
String ruleprojectName,
boolean useExtractor,
String extractorName)
Generates a ruleset archive from a rule project and an extractor. |
protected String |
getAbsolutePath(String fullpath)
Returns the absolute path from a file path relative to the Eclipse workspace. |
protected boolean |
getValue(org.eclipse.debug.core.ILaunchConfiguration configuration,
String attribute,
boolean defaultValue)
Reads the value of a configuration attribute. |
protected String |
getValue(org.eclipse.debug.core.ILaunchConfiguration configuration,
String attribute,
String defaultValue)
Reads the value of a configuration attribute. |
org.eclipse.jdt.launching.IVMRunner |
getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode)
Returns the virtual machine runner used to launch a given configuration in a specific launch mode. |
protected void |
run(org.eclipse.debug.core.ILaunchConfiguration configuration,
String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor,
String mainClass,
String[] customParams)
Runs the given DVS configuration in the specified mode, contributing debug targets and/or processes to the given launch object. |
Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate |
---|
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, 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 |
Methods inherited from interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate |
---|
launch |
Constructor Detail |
---|
public IlrDVSLaunchConfigurationDelegate()
Method Detail |
---|
public org.eclipse.jdt.launching.IVMRunner getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration, String mode) throws org.eclipse.core.runtime.CoreException
getVMRunner
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
- if the virtual machine runner cannot be found.configuration
- The launch configuration.mode
- The launch node.
configuration
in mode
.protected String generateRulesetArchive(String workingDir, String ruleprojectName, boolean useExtractor, 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 String getAbsolutePath(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, String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor, String mainClass, 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 String getValue(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute, 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, 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(String destFilePath)
destFilePath
- The path where the report will be generated.
|
Rule Designer API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |