この拡張ポイントは、PDE エディターで起動ショートカットを登録する場合に使用します。 起動ショートカットは、プラグイン・マニフェスト・エディターの「概要」ページの「テスト」セクションに表示されます。これによって、クライアントは、
そのカスタム起動構成のショートカットをエディターに表示したり、既存の Eclipse アプリケーションおよび
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 拡張の値です。対応する org.eclipse.debug.ui.launchShortcuts 拡張で指定するクラスはインスタンス化され、その launch(IEditorPart, String) は起動時に呼び出されます。
属性 mode の値は、run、debug、profile のいずれかです。
PDE は、Eclipse アプリケーションと OSGi フレームワークを起動するショートカット拡張を提供します。
Copyright (c) 2007 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.