<!ELEMENT extension (variable*)>
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT variable EMPTY>
name CDATA #REQUIRED
readOnly (true | false)
initialValue CDATA #IMPLIED
initializerClass CDATA #IMPLIED
description CDATA #IMPLIED>
initialValueattribtue or initializer class, and can be modified by the user. Once a read-write variable is modified, its value is persisted and overrides any value specified by an extension's
initialValueor initializer class. When unspecified, the value of this attribute is
false. This attribute was added in the 3.3 release.
initializerClassattribute must not be specified.
org.eclipse.core.variables.IValueVariableInitializer. When specified, an
initialValueattribute must not be specified.
<extension point="org.eclipse.core.variables.valueVariables"> <variable name="FOO_HOME" initialValue="/usr/local/foo"> </variable> </extension>In the example above, the specified variable is created with the initial value "/usr/local/foo". The following is an example of a value variable contribution with an initializer class:
<extension point="org.eclipse.core.variables.valueVariables"> <variable name="FOO_HOME" initializerClass="com.example.FooLocator"> </variable> </extension>In the example above, the variable FOO_HOME is created and the class "com.example.FooLocator" will be used to initialize the value the first time it's requested.
Copyright (c) 2003, 2011 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html