public interface IDynamicVariable extends IStringVariable
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
.
Modifier and Type | Method and Description |
---|---|
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.
|
getDescription, getName
String getValue(String argument) throws CoreException
null
.argument
- argument present in variable expression or null
if nonenull
CoreException
- if unable to resolve a value for this variableboolean supportsArgument()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.