(no commit message)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / project / handlers / RenameExperimentHandler.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.lttng.ui.views.project.handlers;
14
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.LTTngExperimentNode;
20 import org.eclipse.swt.widgets.MessageBox;
21 import org.eclipse.ui.PlatformUI;
22
23 /**
24 * <b><u>RenameExperimentHandler</u></b>
25 * <p>
26 * TODO: Implement me. Please.
27 */
28 public class RenameExperimentHandler implements IHandler {
29
30 private LTTngExperimentNode fExperiment = null;
31
32 // ------------------------------------------------------------------------
33 // Validation
34 // ------------------------------------------------------------------------
35
36 public boolean isEnabled() {
37 return (fExperiment != null);
38 }
39
40 // Handled if we are in the ProjectView
41 public boolean isHandled() {
42 return true;
43 }
44
45 // ------------------------------------------------------------------------
46 // Execution
47 // ------------------------------------------------------------------------
48
49 public Object execute(ExecutionEvent event) throws ExecutionException {
50
51 MessageBox mb = new MessageBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
52 mb.setText("Rename Experiment");
53 mb.setMessage("Not implemented yet");
54 mb.open();
55
56 return null;
57 }
58
59 public void dispose() {
60 // TODO Auto-generated method stub
61 }
62
63 // ------------------------------------------------------------------------
64 // IHandlerListener
65 // ------------------------------------------------------------------------
66
67 public void addHandlerListener(IHandlerListener handlerListener) {
68 // TODO Auto-generated method stub
69 }
70
71 public void removeHandlerListener(IHandlerListener handlerListener) {
72 // TODO Auto-generated method stub
73 }
74
75 }
This page took 0.031227 seconds and 5 git commands to generate.