package org.argeo.slc.client.ui.commands; import org.argeo.slc.client.ui.views.ProcessListView; import org.argeo.slc.client.ui.views.ResultListView; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.ui.handlers.HandlerUtil; public class RefreshHandler extends AbstractHandler { public Object execute(ExecutionEvent event) throws ExecutionException { ResultListView view = (ResultListView) HandlerUtil .getActiveWorkbenchWindow(event).getActivePage().findView( ResultListView.ID); view.retrieveResults(); ProcessListView pView = (ProcessListView) HandlerUtil .getActiveWorkbenchWindow(event).getActivePage() .findView(ProcessListView.ID); pView.retrieveResults(); return null; } }