X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=eclipse%2Fplugins%2Fruntime%2Forg.argeo.slc.client.ui%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fcommands%2FResultDetailsDisplayHandler.java;fp=eclipse%2Fplugins%2Fruntime%2Forg.argeo.slc.client.ui%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fcommands%2FResultDetailsDisplayHandler.java;h=0000000000000000000000000000000000000000;hb=b8b8b7dcec14762561b0f429f99ee779bf50e487;hp=98c502f3e6789c2a92aaca4d4f549c423bae92da;hpb=5e5b06fe0c831e66bc048d8bf8da40b32f79a5c9;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/runtime/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/ResultDetailsDisplayHandler.java b/eclipse/plugins/runtime/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/ResultDetailsDisplayHandler.java deleted file mode 100644 index 98c502f3e..000000000 --- a/eclipse/plugins/runtime/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/commands/ResultDetailsDisplayHandler.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.argeo.slc.client.ui.commands; - -import org.argeo.slc.client.ui.views.ResultDetailView; -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.ui.handlers.HandlerUtil; - -/** - * Command handler to set visible or create a ResultDetailView. UUID of the - * testResult is passed via command parameters. - * - * @author bsinou - * - */ - -public class ResultDetailsDisplayHandler extends AbstractHandler { - // private static final Log log = LogFactory - // .getLog(ResultDetailsDisplayHandler.class); - - public Object execute(ExecutionEvent event) throws ExecutionException { - - // We pass the UUID of the test result we want to display via command - // parameters. - String uuid = event - .getParameter("org.argeo.slc.client.commands.resultUuid"); - - // mode = 2 : VIEW_VISIBLE, Show view mode that indicates the view - // should be created or made visible if already created . - // mode = 1 : VIEW_ACTIVATE, Show view mode that indicates the view - // should be made visible and activated. Use of this mode has the same - // effect as calling - try { - ResultDetailView rView = (ResultDetailView) HandlerUtil - .getActiveWorkbenchWindow(event).getActivePage() - .showView(ResultDetailView.ID, "UUID-" + uuid, 1); - rView.setUuid(uuid); - rView.retrieveResults(); - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } -}