啟動捷徑

識別碼: 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
   <!ELEMENT perspective>
   <!ATTLIST perspective

      id            CDATA #REQUIRED>

範例:

下列為啟動捷徑延伸點範例:

<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

Copyright IBM Corp. 2000, 2001. All Rights Reserved.