LaunchShortcut [message #306848] |
Mon, 07 August 2006 16:09 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04034 seconds