public class ValidateLineLength extends AbstractConvertedToolExecutor
| Constructor and Description |
|---|
ValidateLineLength() |
| Modifier and Type | Method and Description |
|---|---|
IToolResult |
executeMassProcessing(IMassProcessingToolContext pMassProcessingContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Executes the tool as mass processing tool.
|
IToolResult |
executeSingleProcessing(IToolContext pToolContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Gets the maximum line length
Gets the content either from the editor context or a file
Validates the content of each line
Based on the result, it creates the
ToolExecutionStatus and
puts the RToolOutParameter into the IExecutionContext. |
void |
init(IToolContext pToolContext)
Initializes the tool executor before it is being executed.
|
createToolContextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsMassProcessingpublic void init(IToolContext pToolContext) throws TaurusToolException
IToolExecutor2pToolContext - the tool contextTaurusToolException - if the tool executor cannot be initialized for any reasonpublic IToolResult executeSingleProcessing(IToolContext pToolContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusToolException
ToolExecutionStatus and
puts the RToolOutParameter into the IExecutionContext.pToolContext - the tool contextpMon - a progress monitor. Setting the monitor to
canceled will cancel the action after the tool
has been executedIToolResultTaurusToolException - if the tool cannot be executed for any reasonToolUtilitypublic IToolResult executeMassProcessing(IMassProcessingToolContext pMassProcessingContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusToolException
RToolParameter.isMassProcessing()), the value of the output
parameter will be set to true, if every file validated by
this action is successfully. Else the output parameter will be set to
false.
If the output parameter type is set to mass processing (
RToolParameter.isMassProcessing()), then the output parameter
context will be set for every execution context.
pMassProcessingContext - the mass processing contextpMon - a progress monitor. Setting the monitor to
canceled will cancel the action after the tool
has been executedIToolResult. Can be null if
IToolExecutor2.supportsMassProcessing() returned falseTaurusToolException - if the tool cannot be executed for any reasonToolUtilityCopyright © 2015 Micro Focus GmbH. All rights reserved.