<!ELEMENT extension (variable*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT variable EMPTY>
<!ATTLIST variable
name CDATA #REQUIRED
initialValue CDATA #IMPLIED
initializerClass CDATA #IMPLIED
description CDATA #IMPLIED>
上の例では、指定された変数が初期値 "/usr/local/foo" で作成されます。 イニシャライザー・クラスを使用した値変数コントリビューションの例を以下に示します。<extension point=
"org.eclipse.core.variables.valueVariables"
>
<variable name=
"FOO_HOME"
initialValue=
"/usr/local/foo"
>
</variable>
</extension>
上の例では、変数 FOO_HOME が作成され、最初の要求時にクラス "com.example.FooLocator" を使用して値が初期化されます。<extension point=
"org.eclipse.core.variables.valueVariables"
>
<variable name=
"FOO_HOME"
initializerClass=
"com.example.FooLocator"
>
</variable>
</extension>
Copyright (c) 2003, 2004 IBM Corporation and others.
All rights reserved.
This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html