原本随产品提供作为标准支持的添加项应标记为 default
。用这种方式,则可能使用未标记为 default
的另一添加项来覆盖该支持。但是,请注意,在任何时间只能有一个支持是活动的。在有多个缺省添加项和/或非缺省添加项的情况下,结果难以确定。
<!ELEMENT extension (support+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT support EMPTY>
<!ATTLIST support
class CDATA #REQUIRED
default (true | false) "false">
org.eclipse.ui.browser.AbstractWorkbenchBrowserSupport
。false
。当工作台遇到两个扩展时,它将优先选择非缺省值而不是缺省值。<extension point=
"org.eclipse.ui.browserSupport"
>
<support default=
"true"
class=
"com.example.xyz.MyBrowserSupport"
>
</support>
</extension>
org.eclipse.ui.browser.AbstractWorkbenchBrowserSupport
的类。
Copyright (c) 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