package org.deved.antlride.commands.help; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.commands.IHandler; import org.eclipse.swt.widgets.Event; import org.eclipse.ui.actions.ActionFactory; import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; import org.eclipse.ui.handlers.HandlerUtil; public class WelcomeHandler extends AbstractHandler implements IHandler { public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchAction welcome = ActionFactory.INTRO.create(HandlerUtil .getActiveWorkbenchWindow(event)); welcome.runWithEvent((Event) event.getTrigger()); return null; } }