此扩展点用来通过提供更多内容、附加 StandbyContentParts 或其他 IntroUrl 操作来扩展现有简介配置。
从 3.2 开始,此扩展点还用来添加表示主题。欢迎实现将使用此主题来将表示与内容分隔开。
<!ELEMENT extension (configExtension+ , standbyContentPart* , action* , theme*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT configExtension EMPTY>
<!ATTLIST configExtension
configId CDATA #REQUIRED
content CDATA #REQUIRED>
定义简介配置的扩展。如果简介部分配置中的任何页面或组通过定义锚声明了扩展性,就可以扩展它们。
<!ELEMENT standbyContentPart EMPTY>
<!ATTLIST standbyContentPart
id CDATA #REQUIRED
pluginId CDATA #REQUIRED
class CDATA #REQUIRED>
standbyContentPart 注册。注册后,就可以通过以下格式的 introURL 操作来启动备用部分:
http://org.eclipse.ui.intro/showStandby?partId=<id of standbyContentPart>
org.eclipse.ui.intro.config.IStandbyContentPart
以处理显示备用内容(如备忘单)的类的标准类名。<!ELEMENT action EMPTY>
<!ATTLIST action
name CDATA #REQUIRED
replaces CDATA #REQUIRED>
定制简介 URL 操作注册。它可用来创建新的简介 URL 操作或预定义操作的缩写。
<!ATTLIST theme
id CDATA #REQUIRED
name CDATA #REQUIRED
path CDATA #REQUIRED
default (true | false) "false"
previewImage CDATA #IMPLIED>
<!ELEMENT property EMPTY>
<!ATTLIST property
name CDATA #REQUIRED
value CDATA #REQUIRED>
可选的主题属性。简介配置程序可以使用此属性来进一步定制简介的表示。
<extension point=
"org.eclipse.ui.intro.configExtension"
>
<configExtension configId=
"com.org.xyz.introConfig"
content=
"extensionContent.xml"
/>
<standbyContentPart id=
"com.org.xyz.myStandbyPart"
class=
"com.org.xyz.internal.MyStandbyContent"
pluginId=
"com.org.xyz"
/>
<action name=
"shortcutAction"
replaces=
"http://org.eclipse.ui.intro/showStandby?partId=com.org.xyz.myStandbyPart"
/>
<action name=
"customAction"
replaces=
"runAction?pluginId=com.org.xyz&class=com.org.xyz.CustomAction&param1=value1"
/>
<theme id=
"com.example.intro.flowers"
name=
"A Nice Flowers Welcome"
path=
"$nl$/themes/flowers"
previewImage=
"$nl$/themes/flowers/preview.png"
>
</theme>
</extension>
Copyright (c) 2004, 2006 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