]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/RefreshHandler.java
tests for solving the hibernate transaction problem
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / org / argeo / slc / client / ui / commands / RefreshHandler.java
1 package org.argeo.slc.client.ui.commands;
2
3 import org.argeo.slc.client.ui.views.ProcessListView;
4 import org.argeo.slc.client.ui.views.ResultListView;
5 import org.eclipse.core.commands.AbstractHandler;
6 import org.eclipse.core.commands.ExecutionEvent;
7 import org.eclipse.core.commands.ExecutionException;
8 import org.eclipse.ui.handlers.HandlerUtil;
9
10 public class RefreshHandler extends AbstractHandler {
11
12 public Object execute(ExecutionEvent event) throws ExecutionException {
13 ResultListView view = (ResultListView) HandlerUtil
14 .getActiveWorkbenchWindow(event).getActivePage().findView(
15 ResultListView.ID);
16 view.retrieveResults();
17 ProcessListView pView = (ProcessListView) HandlerUtil
18 .getActiveWorkbenchWindow(event).getActivePage()
19 .findView(ProcessListView.ID);
20 pView.retrieveResults();
21 return null;
22 }
23
24 }