1 package org
.argeo
.slc
.client
.ui
.commands
;
3 import org
.argeo
.slc
.client
.ui
.views
.ProcessDetailView
;
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
;
10 * Command handler to set visible or create a ProcessDetailView. UUID of the
11 * process is passed via command parameters.
17 public class ProcessDetailsDisplayHandler
extends AbstractHandler
{
18 // private static final Log log = LogFactory
19 // .getLog(ProcessDetailsDisplayHandler.class);
21 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
23 // We pass the UUID of the process we want to display via command
26 .getParameter("org.argeo.slc.client.commands.processUuid");
28 // mode = 1 : VIEW_ACTIVATE, Show view mode that indicates the view
29 // should be made visible and activated. Use of this mode has the same
30 // effect as calling showView.
32 ProcessDetailView pView
= (ProcessDetailView
) HandlerUtil
33 .getActiveWorkbenchWindow(event
).getActivePage()
34 .showView(ProcessDetailView
.ID
, "UUID-" + uuid
, 1);
36 pView
.retrieveResults();
37 } catch (Exception e
) {