這個延伸點可用來在 PDE 編輯器中登錄啟動捷徑。啟動捷徑會出現在外掛程式資訊清單編輯器的「概觀」頁面上的「測試」區段中。這可讓用戶端在編輯器中顯示其自訂的啟動配置之捷徑,或為現有的 Eclipse Application 及 OSGi 架構啟動配置提供設定檔模式的捷經。
<!ELEMENT extension (shortcut+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT shortcut EMPTY>
<!ATTLIST shortcut
id CDATA #REQUIRED
label CDATA #REQUIRED
mode (run|debug|profile)
osgi (true | false)
projectSpecific (true | false)
>org.eclipse.debug.ui.launchShortcuts 延伸的 ID,在按一下鏈結時應該啟動此延伸。run、debug 及 profile。true,這個啟動捷徑只會顯示在已透過 IBundleProjectDescription 來建立關聯的專案中。
如果未指定,這個值假設為 false。
3.6 版新增這個屬性來支援資訊清單編輯器中的自訂啟動捷徑。下列是延伸點的範例:
<extension point="org.eclipse.pde.ui.launchShortcuts"> <shortcut id="org.eclipse.pde.ui.runtimeWorkbenchShortcut" label="Launch an Eclipse Runtime" mode="run" osgi="false"/> </extension>
id 屬性值必須是已定義之 org.eclipse.debug.ui.launchShortcuts 延伸的 ID。
相符的 org.eclipse.debug.ui.launchShortcuts 延伸中所指定的類別會實例化,它的 launch(IEditorPart, String) 會受呼叫而啟動。
mode 屬性值必須是 run、debug 或 profile。
PDE 會提供捷徑延伸來啟動 Eclipse 應用程式及 OSGi 架構。
Copyright © 2007 IBM Corporation and others.
All rights reserved. 本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html。