此扩展点用来注册负责向新用户介绍产品的特殊工作台部分(称为简介部分)的实现。简介部分通常会在第一次启动产品时显示。还通过此扩展点提供了将简介部分实现与特定产品相关联的规则。
生命周期如下所示:org.eclipse.ui.intro.IIntroSite
)管理的。org.eclipse.ui.intro.IIntroPart
)是使用简介站点创建并初始化的。
<!ELEMENT extension (intro* , introProductBinding*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT intro EMPTY>
<!ATTLIST intro
id CDATA #REQUIRED
icon CDATA #IMPLIED
class CDATA #REQUIRED>
指定简介。简介是特定于产品的表示,会在产品启动时显示给第一次使用的用户。
org.eclipse.ui.intro.IIntroPart
接口的类的标准名称。常见的做法是对
org.eclipse.ui.part.intro.IntroPart 划分子类以继承缺省功能。此类实现简介。<!ELEMENT introProductBinding EMPTY>
<!ATTLIST introProductBinding
productId CDATA #REQUIRED
introId CDATA #REQUIRED>
指定产品与简介之间的绑定。这些绑定确定哪个简介适用于当前产品(按照 org.eclipse.core.runtime.Platform.getProduct()
的定义)。
<extension point=
"org.eclipse.ui.intro"
>
<intro id=
"com.example.xyz.intro.custom"
class=
"com.example.xyz.intro.IntroPart"
/>
<introProductBinding productId=
"com.example.xyz.Product"
introId=
"com.example.xyz.intro.custom"
/>
</extension>
class
属性的值必须是用来实现 org.eclipse.ui.intro.IIntroPart
接口的标准名称(通过对 org.eclipse.ui.part.intro.IntroPart
划分子类)。
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