public class ReturnPropertyValue2 extends java.lang.Object implements IToolExecutor2
Copyright Micro Focus GmbH.
| Constructor and Description |
|---|
ReturnPropertyValue2() |
| Modifier and Type | Method and Description |
|---|---|
IToolContext |
createToolContext(IExecutionContext pExecutionContext,
ToolDescriptor pToolDescriptor,
boolean pIsMassProcessing)
This method creates a
IToolContext. |
IToolResult |
executeMassProcessing(IMassProcessingToolContext pMassProcessingContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Executes the tool for multiple resource.
|
IToolResult |
executeSingleProcessing(IToolContext pToolContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Executes the tool for a single resource.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, supportsMassProcessingpublic IToolContext createToolContext(IExecutionContext pExecutionContext, ToolDescriptor pToolDescriptor, boolean pIsMassProcessing) throws TaurusToolException
IToolExecutor2IToolContext. By default an AWM internal
IMassProcessingToolContext or single processing
IToolContext is created.
This method must return an IMassProcessingToolContext, if
the isMassProcessing parameter is set to true. The support
of mass processing can be disabled by returning false in the
method IToolExecutor2.supportsMassProcessing().
createToolContext in interface IToolExecutor2pExecutionContext - the IExecutionContext which is used for the execution
of the ToolDescriptorpToolDescriptor - the corresponding ToolDescriptorpIsMassProcessing - whether this IToolExecutor2 should be executed as mass
processing or not. If this parameter is set to
true, this method has to return a
IMassProcessingToolContext.IToolContext which will be used for the execution of
the IToolExecutor2.TaurusToolException - if an exception occurs while creating an
IToolContext.public IToolResult executeSingleProcessing(IToolContext pToolContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusToolException
IToolExecutor2
A tool typically obtains values of modeled attributes and input
parameters through the IToolContext (or ToolUtility
helper methods), runs its specific function and returns all results
(including possible output parameters) in the IToolResult.
This method gets called if the tool is being executed from an
ActionDescriptor with the Mass Processing attribute
set to false or if IToolExecutor2.supportsMassProcessing()
returned false.
The tool context contains all parameters, since their
Mass Processing flags are ignored during single processing
execution.
executeSingleProcessing in interface IToolExecutor2pToolContext - 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
IToolExecutor2IToolExecutor2.executeSingleProcessing(IToolContext, IProgressMonitor) the tool
executor can process multiple resources with a single call.
If the tool executor does not support mass processing execution (by
returning false with IToolExecutor2.supportsMassProcessing()),
this method will never by called by AWM and can simply return
null.
The list of resources to be processed by the mass processing action can
be obtained from the mass processing tool context via
IMassProcessingToolContext.getSubContexts().
The IMassProcessingToolContext only contains parameters with the
Mass Processing flag set to false. Mass
processing parameters are contained by its sub-contexts.
executeMassProcessing in interface IToolExecutor2pMassProcessingContext - 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.