]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RemoveSelectedResultFromResultList.java
Process builder display
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / commands / RemoveSelectedResultFromResultList.java
1 package org.argeo.slc.client.ui.commands;
2
3 import org.argeo.slc.client.ui.views.ResultListView;
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 /**
10 *
11 * @author bsinou
12 *
13 * Launch the batch built in the ProcessBuilderView
14 *
15 * NOTE : only one batch is supported with this command, if more than
16 * one batch is planned, this class must be updated with parameter.
17 */
18
19 public class RemoveSelectedResultFromResultList extends AbstractHandler {
20 public final static String ID = "org.argeo.slc.client.ui.removeSelectedResultFromResultList";
21
22 // private final static Log log =
23 // LogFactory.getLog(RemoveSelectedProcessFromBatchHandler.class);
24
25 public Object execute(ExecutionEvent event) throws ExecutionException {
26 ResultListView rlView = (ResultListView) HandlerUtil
27 .getActiveWorkbenchWindow(event).getActivePage()
28 .findView(ResultListView.ID);
29 rlView.removeSelected();
30 return null;
31 }
32
33 }