1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.argeo.slc.client.ui.dist.commands;
17
18 import org.argeo.slc.client.ui.dist.views.ArtifactsBrowser;
19 import org.eclipse.core.commands.AbstractHandler;
20 import org.eclipse.core.commands.ExecutionEvent;
21 import org.eclipse.core.commands.ExecutionException;
22 import org.eclipse.ui.handlers.HandlerUtil;
23
24
25 public class RefreshArtifactBrowser extends AbstractHandler {
26
27 public Object execute(ExecutionEvent event) throws ExecutionException {
28 ArtifactsBrowser view = (ArtifactsBrowser) HandlerUtil
29 .getActiveWorkbenchWindow(event).getActivePage()
30 .findView(ArtifactsBrowser.ID);
31 view.refresh(null);
32 return null;
33 }
34 }