1
/********************************************************************************
2
* Copyright (c) 2008-2010 Motorola Inc. All rights reserved.
3
* This program and the accompanying materials are made available under the terms
4
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
5
* available at http://www.eclipse.org/legal/epl-v10.html
8
* Otavio Ferranti (Motorola)
11
* Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
12
********************************************************************************/
14
package org.eclipse.linuxtools.sequoyah.device.ui;
16
import org.eclipse.jface.action.IAction;
17
import org.eclipse.jface.viewers.ISelection;
18
import org.eclipse.linuxtools.sequoyah.device.tools.ITool;
19
import org.eclipse.ui.IViewActionDelegate;
20
import org.eclipse.ui.IViewPart;
23
* @author Otavio Ferranti
25
public class ViewActionRun implements IViewActionDelegate {
27
private IViewPart targetPart;
30
* @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
32
public void init(IViewPart view) {
33
this.targetPart = view;
37
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
39
public void run(IAction action) {
40
IToolViewPart toolView = ((IToolViewPart) this.targetPart);
41
ITool tool = toolView.getTool();
49
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
51
public void selectionChanged(IAction action, ISelection selection) {
52
// TODO Auto-generated method stub
b'\\ No newline at end of file'