一旦使用對話框定義啟動配置,即可顯示在執行或除錯功能表中。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>