public interface IPropertyProvider
IPropertyProvider is used to get or set property
values. Property Providers can be registered by using the AWM model extension
point ModelExtensionParser.MODEL_EXTENSION_EXT_POINT_ID.
Property Providers are called frequently by AWM to check and update property
values. It is important that the implementations of the
getPropertyValue(IExecutionContext, String, String) and
setPropertyValue(IExecutionContext, String, String, String) are very
time efficient, since these methods can be called very often by AWM.
If the reading of properties is time efficient, the
toolExecuted(IExecutionContext, ToolDescriptor, ToolExecutionStatus)
method can be called to update cached properties values only in specific
situations.
Copyright Micro Focus GmbH.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadValue(IExecutionContext pContext,
java.lang.String pResourceIdentifier,
java.lang.String pPropertyID)
Called before getPropertyValue(…) is called to check whether the provider
is able to get values for the specific property.
|
java.lang.String |
getPropertyValue(IExecutionContext pContext,
java.lang.String pResourceIdentifier,
java.lang.String pPropertyID)
Returns a specific property value.
|
void |
setPropertyValue(IExecutionContext pContext,
java.lang.String pResourceIdentifier,
java.lang.String pPropertyID,
java.lang.String pNewValue)
Called by AWM when a property value should be set.
|
void |
toolExecuted(IExecutionContext pContext,
ToolDescriptor pTool,
ToolExecutionStatus pToolResult)
Called after a tool has been executed.
|
void toolExecuted(IExecutionContext pContext, ToolDescriptor pTool, ToolExecutionStatus pToolResult)
For more informations about the tool execution process see
IToolExecutor.execTool(IExecutionContext, ToolDescriptor, String, org.eclipse.core.runtime.IProgressMonitor).
pContext - the execution contextpTool - the descriptor of the tool that has been executedpToolResult - the result of the executed tooljava.lang.String getPropertyValue(IExecutionContext pContext, java.lang.String pResourceIdentifier, java.lang.String pPropertyID)
pContext - the execution context. Can be nullpResourceIdentifier - the resource identifier. Can be nullpPropertyID - the ID of the property to setnull.boolean canReadValue(IExecutionContext pContext, java.lang.String pResourceIdentifier, java.lang.String pPropertyID)
pContext - the execution context. Can be nullpResourceIdentifier - the resource identifier. Can be nullpPropertyID - the ID of the property to readvoid setPropertyValue(IExecutionContext pContext, java.lang.String pResourceIdentifier, java.lang.String pPropertyID, java.lang.String pNewValue)
By default this method will only be called for properties, which have the
canSetValue attribute set to true in their
extension definition.
pContext - the execution context. Can be nullpResourceIdentifier - the resource identifier. Can be nullpPropertyID - the ID of the property to setpNewValue - the new value to setCopyright © 2015 Micro Focus GmbH. All rights reserved.