]> git.argeo.org Git - lgpl/argeo-commons.git/blob - RefreshUsersList.java
10e413a6c0fe498d30447fdebe8d84098fb7d15c
[lgpl/argeo-commons.git] / RefreshUsersList.java
1 package org.argeo.security.ui.admin.commands;
2
3 import org.argeo.security.ui.admin.views.UsersView;
4 import org.eclipse.core.commands.AbstractHandler;
5 import org.eclipse.core.commands.ExecutionEvent;
6 import org.eclipse.core.commands.ExecutionException;
7 import org.eclipse.ui.handlers.HandlerUtil;
8
9 /** Refresh the main EBI list. */
10 public class RefreshUsersList extends AbstractHandler {
11
12 public Object execute(ExecutionEvent event) throws ExecutionException {
13 UsersView view = (UsersView) HandlerUtil
14 .getActiveWorkbenchWindow(event).getActivePage()
15 .findView(UsersView.ID);
16 view.refresh();
17 return null;
18 }
19
20 }