X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=eclipse%2Fplugins%2Forg.argeo.slc.client.ui%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Factions%2FRefreshAction.java;h=04a4c14a632210b12b583ef839ca560c2735ca6f;hb=e7d183fb130b3e99ca4447cc363e09c97f8fd376;hp=4e5aea7e2bdf8d5e0efb21ddf582864af3333baa;hpb=d69693c9b3ee1a298f0abd9f8c64724937e31709;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/actions/RefreshAction.java b/eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/actions/RefreshAction.java index 4e5aea7e2..04a4c14a6 100644 --- a/eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/actions/RefreshAction.java +++ b/eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/actions/RefreshAction.java @@ -1,8 +1,9 @@ package org.argeo.slc.client.ui.actions; -import org.argeo.slc.client.ui.views.ExecutionModulesView; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.argeo.slc.client.ui.views.ResultListView; import org.eclipse.jface.action.IAction; -import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ISelection; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.IWorkbenchWindowActionDelegate; @@ -16,6 +17,7 @@ import org.eclipse.ui.IWorkbenchWindowActionDelegate; * @see IWorkbenchWindowActionDelegate */ public class RefreshAction implements IWorkbenchWindowActionDelegate { + private final static Log log = LogFactory.getLog(RefreshAction.class); private IWorkbenchWindow window; /** @@ -31,11 +33,16 @@ public class RefreshAction implements IWorkbenchWindowActionDelegate { * @see IWorkbenchWindowActionDelegate#run */ public void run(IAction action) { - ExecutionModulesView view = (ExecutionModulesView) window - .getWorkbench().getActiveWorkbenchWindow().getActivePage() - .findView(ExecutionModulesView.ID); - view.getViewer().refresh(); - MessageDialog.openInformation(window.getShell(), "Ui", "Refreshed"); + // ExecutionModulesView view = (ExecutionModulesView) window + // .getWorkbench().getActiveWorkbenchWindow().getActivePage() + // .findView(ExecutionModulesView.ID); + // view.getViewer().refresh(); + // MessageDialog.openInformation(window.getShell(), "Ui", "Refreshed"); + log.info("command"); + ResultListView view = (ResultListView) window.getWorkbench() + .getActiveWorkbenchWindow().getActivePage().findView( + ResultListView.ID); + view.retrieveResults(); } /**