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 workbench selection or active editor.
Configuration Markup:
<!ELEMENT extension (shortcut*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT shortcut (perspective*)>
<!ATTLIST shortcut
id CDATA #REQUIRED
modes CDATA #REQUIRED
class CDATA #REQUIRED
label CDATA #REQUIRED
icon CDATA #REQUIRED
category CDATA #IMPLIED
helpContextId CDATA #IMPLIED
>
<!ELEMENT perspective EMPTY>
<!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/examples.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.