Launch Shortcuts

Identifier: org.eclipse.debug.ui.launchShortcuts

Description: This extension point provides support for selection sensitive launching. Extensions register a shortcut which appears in the run and/or debug cascade menus to launch the current workbench selection or active editor.

Configuration Markup:

   <!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>

Examples:

The following is an example of a launch shortcut extension point:

<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>

In the above example, a launch shortcut will be shown in the run and debug cascade menus with the label "Example Launch Shortcut", in the JavaPerspective and the DebugPerspective.

API Information: Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.debug.ui.ILaunchShortcut.

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