Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » LaunchShortcut
LaunchShortcut [message #306848] Mon, 07 August 2006 16:09
Eclipse UserFriend
Hi

I feel a bit stupid asking this... but I can't get my LaunchShortcut to
display in the 'Run As' menu:

<extension
point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
class="org.test.launchers.LaunchShortcut1"
icon="icons/test.gif"
id="org.test.launchers.shortcut1"
label="Test Launch Shortcut"
modes="run,debug"/>
</extension>

Admittedly I haven't implemented org.test.launchers.LaunchShortcut1 to
do anything other than:

package org.test.launchers;

import org.eclipse.debug.ui.ILaunchShortcut;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IEditorPart;

public class LaunchShortcut1 implements ILaunchShortcut {

public void launch(ISelection selection, String mode) {
System.err.println("Test Launch Shortcut invoked");
}

public void launch(IEditorPart editor, String mode) {
System.err.println("Test Launch Shortcut invoked");
}
}

Is this not the minimum I must do in order to activate such a shortcut,
probalby adding it to all perspectives (but I have tried explicitly
adding it ot perspectives using <perspective id>? Any ideas? What am I
missing?

Cheers

Andy
Previous Topic:New wizard shortcuts
Next Topic:No Eclipse question
Goto Forum:
  


Current Time: Tue Jul 22 15:31:39 EDT 2025

Powered by FUDForum. Page generated in 0.04034 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top