<!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>
用来定义要用于首选项修改侦听的类的元素。
<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