1 package org
.argeo
.slc
.client
.ui
.commands
;
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
;
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 RemoveSelectedResultFromResultList
extends AbstractHandler
{
20 public final static String ID
= "org.argeo.slc.client.ui.removeSelectedResultFromResultList";
22 // private final static Log log =
23 // LogFactory.getLog(RemoveSelectedProcessFromBatchHandler.class);
25 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
26 ResultListView rlView
= (ResultListView
) HandlerUtil
27 .getActiveWorkbenchWindow(event
).getActivePage()
28 .findView(ResultListView
.ID
);
29 rlView
.removeSelected();