I have a menu that triggers Run(Ctrl + F11)
but I want to do more action than Run.
I want to call the command id of run in the handler
public class CheckCodesHandler extends AbstractHandler{
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
/*
* call the commandid = org.eclipse.debug.ui.runLast here?????
* */
return null;
}
}
so far, I just called the command id in the plugin.xml to execute it.
For a simple command that doesn't need parameters you can use