]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/commands/RemoveSelectedProcessFromBatchHandler.java
Finalise excel support for windows
[gpl/argeo-slc.git] / eclipse / plugins / runtime / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / commands / RemoveSelectedProcessFromBatchHandler.java
1 package org.argeo.slc.client.ui.commands;
2
3 import org.argeo.slc.client.ui.views.ProcessBuilderView;
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 RemoveSelectedProcessFromBatchHandler extends AbstractHandler {
20 // private final static Log log =
21 // LogFactory.getLog(RemoveSelectedProcessFromBatchHandler.class);
22
23 public Object execute(ExecutionEvent event) throws ExecutionException {
24 ProcessBuilderView pbView = (ProcessBuilderView) HandlerUtil
25 .getActiveWorkbenchWindow(event).getActivePage()
26 .findView(ProcessBuilderView.ID);
27 pbView.removeSelected();
28 return null;
29 }
30
31 }