啟動捷徑

一旦使用對話框定義了啟動配置,即可顯示在執行及/或除錯功能表中。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"
		helpContextId="org.eclipse.jdt.debug.ui.shortcut_local_java_application"
		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 Corporation and others 2000, 2003.