啟動捷徑

ID:
org.eclipse.pde.ui.launchShortcuts

自:
3.3

說明:

這個延伸點可用來在 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)

>


範例:

下列是延伸點的範例:


   <extension
         point="org.eclipse.pde.ui.launchShortcuts">
	<shortcut
            id="org.eclipse.pde.ui.runtimeWorkbenchShortcut"
            label="Launch an Eclipse Runtime" 
            mode="run"
            osgi="false"/>
      </extension>

API 資訊:

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。