識別碼: org.eclipse.debug.ui.launchShortcuts
說明: 這個延伸點提供敏感性啟動選項的支援。 延伸項目登錄捷徑,會出現在執行和 / 或除錯階式排列功能表中,以啟動現行工作台選項或作用中的編輯器。
配置標記:
<!ELEMENT shortcut (perspective)*> <!ATTLIST shortcut
id CDATA #REQUIRED
modes CDATA #REQUIRED
class CDATA #REQUIRED
label CDATA #REQUIRED
icon CDATA #REQUIRED
id
為啟動捷徑指定唯一的識別碼。modes
指定逗點分隔此捷徑支援的模式清單。class
指定類別的完整名稱,實作 org.eclipse.debug.ui.ILaunchShortcut
。label
指定用來展現捷徑的可翻譯標籤。icon
為用來展現潔淨的影像指定外掛程式的相對路徑。<!ELEMENT perspective> <!ATTLIST perspective
id CDATA #REQUIRED>
id
- 視景唯一的識別碼,出現在啟動捷徑的功能表捷徑。 範例:
下列為啟動捷徑延伸點範例:
<extension point="org.eclipse.debug.ui.launchShortcuts <shortcut id="com.example.ExampleLaunchShortcutId" modes="run, debug" class="com.example.ExampleLaunchShortcutImpl" label="Example Launch Shortcut" icon="icons\example.gif"> <perspective id="org.eclipse.jdt.ui.JavaPerspective"/> <perspective id="org.eclipse.debug.ui.DebugPerspective"/> </shortcut> </extension>
上述範例中,啟動捷徑在執行和除錯階式排列功能表中將顯示為「範例啟動捷徑」標籤(在 JavaPerspective 和 DebugPerspective 之中)。
API 資訊:class 屬性值必須是 Java 類別的完整名稱並實作介面 org.eclipse.debug.ui.ILaunchShortcut。