1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.project
.handlers
;
15 import org
.eclipse
.core
.commands
.ExecutionEvent
;
16 import org
.eclipse
.core
.commands
.ExecutionException
;
17 import org
.eclipse
.core
.commands
.IHandler
;
18 import org
.eclipse
.core
.commands
.IHandlerListener
;
19 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.project
.model
.LTTngTraceNode
;
20 import org
.eclipse
.swt
.widgets
.MessageBox
;
21 import org
.eclipse
.ui
.PlatformUI
;
24 * <b><u>OpenTraceHandler</u></b>
26 * TODO: Implement me. Please.
28 public class OpenTraceHandler
implements IHandler
{
30 private LTTngTraceNode fTrace
= null;
32 // ------------------------------------------------------------------------
34 // ------------------------------------------------------------------------
37 public boolean isEnabled() {
38 return (fTrace
!= null);
41 // Handled if we are in the ProjectView
43 public boolean isHandled() {
47 // ------------------------------------------------------------------------
49 // ------------------------------------------------------------------------
52 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
54 MessageBox mb
= new MessageBox(PlatformUI
.getWorkbench().getActiveWorkbenchWindow().getShell());
55 mb
.setText("Open Trace");
56 mb
.setMessage("Not implemented yet");
63 public void dispose() {
64 // TODO Auto-generated method stub
67 // ------------------------------------------------------------------------
69 // ------------------------------------------------------------------------
72 public void addHandlerListener(IHandlerListener handlerListener
) {
73 // TODO Auto-generated method stub
77 public void removeHandlerListener(IHandlerListener handlerListener
) {
78 // TODO Auto-generated method stub