2010-10-26 Francois Chouinard <fchouinard@gmail.com> Contribution for Bug309042
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / project / handlers / RenameExperimentHandler.java
CommitLineData
6e512b93
ASL
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
13package org.eclipse.linuxtools.lttng.ui.views.project.handlers;
14
15import org.eclipse.core.commands.ExecutionEvent;
16import org.eclipse.core.commands.ExecutionException;
17import org.eclipse.core.commands.IHandler;
18import org.eclipse.core.commands.IHandlerListener;
19import org.eclipse.linuxtools.lttng.ui.views.project.model.LTTngExperimentNode;
20import org.eclipse.swt.widgets.MessageBox;
21import org.eclipse.ui.PlatformUI;
22
23/**
24 * <b><u>RenameExperimentHandler</u></b>
25 * <p>
26 * TODO: Implement me. Please.
27 */
28public class RenameExperimentHandler implements IHandler {
29
30 private LTTngExperimentNode fExperiment = null;
31
32 // ------------------------------------------------------------------------
33 // Validation
34 // ------------------------------------------------------------------------
35
d4011df2 36 @Override
6e512b93
ASL
37 public boolean isEnabled() {
38 return (fExperiment != null);
39 }
40
41 // Handled if we are in the ProjectView
d4011df2 42 @Override
6e512b93
ASL
43 public boolean isHandled() {
44 return true;
45 }
46
47 // ------------------------------------------------------------------------
48 // Execution
49 // ------------------------------------------------------------------------
50
d4011df2 51 @Override
6e512b93
ASL
52 public Object execute(ExecutionEvent event) throws ExecutionException {
53
54 MessageBox mb = new MessageBox(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
55 mb.setText("Rename Experiment");
56 mb.setMessage("Not implemented yet");
57 mb.open();
58
59 return null;
60 }
61
d4011df2 62 @Override
6e512b93
ASL
63 public void dispose() {
64 // TODO Auto-generated method stub
65 }
66
67 // ------------------------------------------------------------------------
68 // IHandlerListener
69 // ------------------------------------------------------------------------
70
d4011df2 71 @Override
6e512b93
ASL
72 public void addHandlerListener(IHandlerListener handlerListener) {
73 // TODO Auto-generated method stub
74 }
75
d4011df2 76 @Override
6e512b93
ASL
77 public void removeHandlerListener(IHandlerListener handlerListener) {
78 // TODO Auto-generated method stub
79 }
80
81}
This page took 0.029504 seconds and 5 git commands to generate.