|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDynamicVariable
A dynamic variable is a variable whose value is computed dynamically by a resolver at the time a string substitution is performed. A dynamic variable is contributed by an extension.
The following is a definition of a dynamic variable that resolves to the name of the selected resource:
<extension point="org.eclipse.core.variables.dynamicVariables">
<variable
name="resource_name"
resolver="com.example.ResourceNameResolver"
description="The name of the selected resource"
supportsArgument="false">
</variable>
</extension>
Clients contributing a dynamic variable provide an implementation of
IDynamicVariableResolver.
| Method Summary | |
|---|---|
String |
getValue(String argument)
Returns the value of this variable when referenced with the given argument, possibly null. |
boolean |
supportsArgument()
Returns whether this variable supports an argument, as specified by this variable's extension definition in plug-in XML. |
| Methods inherited from interface org.eclipse.core.variables.IStringVariable |
|---|
getDescription, getName |
| Method Detail |
|---|
String getValue(String argument)
throws CoreException
null.
argument - argument present in variable expression or null
if none
null
CoreException - if unable to resolve a value for this variableboolean supportsArgument()
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.