1 package org
.argeo
.slc
.client
.ui
.commands
;
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
;
13 * Launch the batch built in the ProcessBuilderView
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.
19 public class RemoveSelectedProcessFromBatchHandler
extends AbstractHandler
{
20 // private final static Log log =
21 // LogFactory.getLog(RemoveSelectedProcessFromBatchHandler.class);
23 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
24 ProcessBuilderView pbView
= (ProcessBuilderView
) HandlerUtil
25 .getActiveWorkbenchWindow(event
).getActivePage()
26 .findView(ProcessBuilderView
.ID
);
27 pbView
.removeSelected();