public class CreateStaticElementListToolExecutor extends AbstractConvertedToolExecutor
Copyright Micro Focus GmbH.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT
Attribute extension ID of the panel fields complex attribute
|
static java.lang.String |
MATCHNAME
Attribute extension ID of the matchname attribute
|
static java.lang.String |
PROPERTY
Attribute extension ID of the property complex attribute
|
static java.lang.String |
PROPERTY_VALUE
Attribute extension ID of the property value attribute
|
static java.lang.String |
TOOLTYPE_EXTENSION
ToolType Extension ID of the
CreateStaticElementListToolExecutor |
| Constructor and Description |
|---|
CreateStaticElementListToolExecutor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
supportsMassProcessing()
Whether the tool executor supports mass processing execution.
|
createToolContextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic static final java.lang.String TOOLTYPE_EXTENSION
CreateStaticElementListToolExecutorpublic static final java.lang.String ELEMENT
public static final java.lang.String MATCHNAME
public static final java.lang.String PROPERTY
public static final java.lang.String PROPERTY_VALUE
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.
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
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.
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 reasonToolUtilitypublic boolean supportsMassProcessing()
IToolExecutor2true by default.
If false is returned, the tool executor cannot effectively
process multiple resources (e.g. selected elements). This can be intended
for tools not directly processing selected elements. In this case AWM
will always call
IToolExecutor2.executeSingleProcessing(IToolContext, IProgressMonitor) and
never
IToolExecutor2.executeMassProcessing(IMassProcessingToolContext, IProgressMonitor).
If applicable, tool executors should always aim for implementing mass processing support, since it can increase their usability in AWM models.
true if the tool supports mass processing, otherwise
falseCopyright © 2015 Micro Focus GmbH. All rights reserved.