起動ショートカット

ダイアログを使用して起動構成を定義したら、それを実行またはデバッグ・メニュー、あるいはその両方に表示できます。 org.eclipse.debug.ui.launchShortcuts 拡張ポイントが、起動ショートカットを登録するために使用されます。 拡張定義では、ショートカットを表示するモード (実行、デバッグ) およびパースペクティブを指定できます。 各ショートカットごとに、ILaunchShortcut のインプリメンテーションを指定する必要があります。 このクラスは、ビューまたはエディターで特定の選択項目を指定してプログラムを起動するために使用されます。  

次のマークアップは、Java アプリケーションを起動するためのショートカットを登録します。

<extension point = "org.eclipse.debug.ui.launchShortcuts">
	<shortcut
		id="org.eclipse.jdt.debug.ui.localJavaShortcut"
		class="org.eclipse.jdt.internal.debug.ui.launcher.JavaApplicationShortcut"
		label="%JavaApplicationShortcut.label"
		icon="icons/full/ctool16/java_app.gif"
		modes="run, debug">
		<perspective id="org.eclipse.jdt.ui.JavaPerspective"/>
		<perspective id="org.eclipse.jdt.ui.JavaHierarchyPerspective"/>
		<perspective id="org.eclipse.jdt.ui.JavaBrowsingPerspective"/>
		<perspective id="org.eclipse.debug.ui.DebugPerspective"/>
	</shortcut>
</extension>

Copyright IBM Corp. and others 2000,2002.