<!ELEMENT extension (scope* , initializer* , modifier*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT scope EMPTY>
<!ATTLIST scope
name CDATA #REQUIRED
class CDATA #REQUIRED>
新規設定スコープのクライアントの定義を記述するエレメントは、以下のとおりです。
<!ELEMENT initializer EMPTY>
<!ATTLIST initializer
class CDATA #REQUIRED>
ランタイム設定の初期化で使用するクラスを定義するエレメントは、以下のとおりです。
<!ELEMENT modifier EMPTY>
<!ATTLIST modifier
class CDATA #REQUIRED>
設定変更の listen で使用するクラスを定義するエレメントは、以下のとおりです。
<extension point=
"org.eclipse.core.runtime.preferences"
>
<scope name=
"foo"
class=
"com.example.FooPrefs"
/>
<initializer class=
"com.example.MyPreferenceInitializer"
/>
<modifier class=
"com.example.MyModifyListener"
/>
</extension>
org.eclipse.core.runtime.Platform.getPreferencesService()
を
呼び出すと取得できます) は、Eclipse 設定メカニズムに含まれるフックです。
Copyright (c) 2004, 2005 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