起動ショートカット

ID: 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 にある、ラベル "Example Launch Shortcut" を持つ実行およびデバッグのカスケード・メニューに表示されます。

API 情報: 属性 class の値は、インターフェース org.eclipse.debug.ui.ILaunchShortcut をインプリメントする Java クラスの 完全修飾名でなければなりません。

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