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
id
specifies a unique identifier for this launch shortcut.modes
specifies a comma separated list of modes this shortcut supports.class
specifies the fully qualified name of a class which implements
org.eclipse.debug.ui.ILaunchShortcut
.label
specifies a translatable label used to render this shortcut.icon
specifies a plug-in relative path to an image used to render this
shortcut.<!ELEMENT perspective> <!ATTLIST perspective
id CDATA #REQUIRED>
id
- the unique identifier of a perspective in which a menu shortcut for the
this launch shortcut will appearExamples:
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.