public interface IValueVariable extends IStringVariable
Example of a value variable contribution with an initial value, the specified variable is created with the initial value "/usr/local/foo".
<extension point="org.eclipse.core.variables.valueVariables">
<variable
name="FOO_HOME"
initialValue="/usr/local/foo">
</variable>
</extension>
Example of a value variable contribution with an initializer class, the class "com.example.FooLocator" will be used to initialize the value the first time it's requested.
<extension point="org.eclipse.core.variables.valueVariables">
<variable
name="FOO_HOME"
initializerClass="com.example.FooLocator">
</variable>
</extension>
Clients are not intended to implement this interface.
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Returns the value of this variable, or
null if none. |
boolean |
isContributed()
Returns whether this variable was contributed by an extension.
|
void |
setDescription(String description)
Sets the description of this variable to the given value.
|
void |
setValue(String value)
Sets the value of this variable to the given value.
|
getDescription, getNamevoid setValue(String value)
null indicates the value of this variable is undefined.value - variable value, possibly nullString getValue()
null if none.null if noneboolean isContributed()
void setDescription(String description)
description - variable description, possibly nullGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.