You class should implement ILaunchShortcut. Check out the Javadoc.
What exception are you getting? Check the error log.
I'm really not sure if I'm supposed to write a follow-up here but let me clarify my question more. I've extended org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut. Plus, I've added my own logger to constructors and methods, but the class seems like it's never even instantiating.
Thanks. Woongbin
I found the answer. I had to add contextualLaunch under org.eclipse.debug.ui.launchShortcuts. The old was seems like it's deprecated a long ago. For other ppl who are working on the same subject, you might want to extend org.eclipse.ui.commands and bindings, too.
I cannot choose this answer but this is the answer that I (asker) was looking for.
Mr. Woongbin
Could you be more specific and tell me what do you mean by:
I had to add contextualLaunch under org.eclipse.debug.ui.launchShortcuts
Because I am facing the same problem. I am building a new programming language, its files extensions is .abu. I want to right click the file and from the run as menu i choose my own launchShortcut and run this .abu ugly file.
Thank you and Appreciate your help, Abubaker,