featureTypes
扩展点允许使用符号类型标识注册备用功能部件实现。每当使用此标识引用类型时,就会使用提供的工厂来创建正确的具体功能部件实现。
<!ELEMENT extension (feature-factory+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT feature-factory EMPTY>
<!ATTLIST feature-factory
class CDATA #REQUIRED>
<extension id=
"custom"
point=
"org.eclipse.update.core.featureTypes"
name=
"Custom packaged feature"
>
<feature-factory class=
"com.xyz.update.CustomFeatureFactory"
>
</feature-factory>
</extension>
org.eclipse.update.core.IFeatureFactory
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.