簡介是分成幾頁加以組織,通常是反映特定種類的簡介資料。 比方說,「新功能」頁面可能是介紹前幾版以來的新概念或是新功能。 由簡介配置所定義的內容, 可以利用 org.eclipse.ui.intro.configExtension 延伸點, 從其他外掛程式加以參照和延伸。
<!ELEMENT extension (config+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT config (presentation)>
<!ATTLIST config
introId CDATA #REQUIRED
id CDATA #REQUIRED
content CDATA #REQUIRED>
您可以利用配置元素,來配置可以自訂的「簡介部分」。 配置元素必須指定 ID、簡介 ID 和內容檔。 簡介內容檔是一個 XML 檔,主要在說明簡介的網頁、群組和鏈結。
<!ELEMENT presentation (implementation+)>
<!ATTLIST presentation
home-page-id CDATA #REQUIRED
standby-page-id CDATA #IMPLIED>
呈現元素定義簡介部分呈現方式的所有可能實作。 它可以定義一或多個實作。但在啟動時,會根據實作的 os/ws 屬性只會選擇一個實作。 否則,就是選擇第一個沒有定義 os/ws 屬性的實作。
<!ELEMENT implementation (head?)>
<!ATTLIST implementation
kind (swt|html)
style CDATA #IMPLIED
os CDATA #IMPLIED
ws CDATA #IMPLIED>
要呈現優異的平台體驗,有兩種實作方式。 一種是「SWT 瀏覽器」型,另一種是「UI 格式」型。 您可以配置自訂的簡介部分,讓它根據現有的 OS 和 WS,挑選其中一種呈現方式。 實作的類型有 swt 和 html 兩種。
org.eclipse.core.runtime.Platform
的 Javadoc)。
org.eclipse.core.runtime.Platform
的 Javadoc)。
<extension id=
"intro"
point=
"org.eclipse.ui.intro.config"
>
<config introId=
"com.org.xyz.intro"
id=
"com.org.xyz.introConfig"
content=
"introContent.xml"
>
<presentation home-page-id=
"root"
title=
"%intro.title"
>
<implementation ws=
"win32"
style=
"css/shared.css"
kind=
"html"
os=
"win32"
>
</implementation>
<implementation style=
"css/shared_swt.properties"
kind=
"swt"
>
</implementation>
</presentation>
</config>
</extension>
Copyright (c) 2004 IBM Corporation and others.
All rights reserved.
本程式和隨附的資料可以根據隨附這項分送且可在 http://www.eclipse.org/legal/cpl-v10.html 中取得之 Common Public License v1.0 之條款來使用。