* Warlock, the open-source cross-platform game client package cc.warlock.rcp.menu; import org.eclipse.core.commands.ExecutionEvent; /** * @author Will Robertson * */ public class RunningScriptsViewHandler extends SimpleCommandHandler { /* (non-Javadoc) * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent) */ public Object execute(ExecutionEvent event) throws ExecutionException { RunningScriptsView rsv = RunningScriptsView.getView(); GameView inFocus = GameView.getGameViewInFocus(); if (inFocus != null) { rsv.setClient(inFocus.getWarlockClient()); } return null; } }