~ubuntu-branches/ubuntu/vivid/eclipse-linuxtools/vivid-proposed

« back to all changes in this revision

Viewing changes to proctools/org.eclipse.linuxtools.sequoyah.device.base/src/org/eclipse/linuxtools/sequoyah/device/ui/ViewActionRun.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam, Jakub Adam, tony mancill
  • Date: 2014-10-11 11:44:05 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20141011114405-yazjvxfzzhmi5sgj
Tags: 3.1.0-1
[ Jakub Adam ]
* New upstream release (Closes: #761524).
* Refreshed d/patches.
* Don't build removed feature org.eclipse.linuxtools.tools.launch
  - merged into org.eclipse.linuxtools.profiling.
* Use javac target 1.7.
* Build new feature org.eclipse.linuxtools.dataviewers.feature
  - required by Valgrind integration.
* Build-depend on eclipse-remote-services-api and eclipse-cdt-autotools.
* Bump Standards-Version to 3.9.6.
* Override incompatible-java-bytecode-format - linuxtools needs Java 7.
* Remove unused codeless-jar override.

[ tony mancill ]
* Tweak short package description to make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
6
 
 *
7
 
 * Initial Contributor:
8
 
 * Otavio Ferranti (Motorola)
9
 
 *
10
 
 * Contributors:
11
 
 * Daniel Pastore (Eldorado) - [289870] Moving and renaming Tml to Sequoyah
12
 
 ********************************************************************************/
13
 
 
14
 
package org.eclipse.linuxtools.sequoyah.device.ui;
15
 
 
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;
21
 
 
22
 
/**
23
 
 * @author Otavio Ferranti
24
 
 */
25
 
public class ViewActionRun implements IViewActionDelegate {
26
 
 
27
 
        private IViewPart targetPart;
28
 
 
29
 
        /* (non-Javadoc)
30
 
         * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
31
 
         */
32
 
        public void init(IViewPart view) {
33
 
                this.targetPart = view;
34
 
        }
35
 
 
36
 
        /* (non-Javadoc)
37
 
         * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
38
 
         */
39
 
        public void run(IAction action) {
40
 
                IToolViewPart toolView = ((IToolViewPart) this.targetPart);
41
 
                ITool tool = toolView.getTool();
42
 
                
43
 
                if (null != tool) {
44
 
                        tool.start();
45
 
                }
46
 
        }
47
 
 
48
 
        /* (non-Javadoc)
49
 
         * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
50
 
         */
51
 
        public void selectionChanged(IAction action, ISelection selection) {
52
 
                // TODO Auto-generated method stub
53
 
        }
54
 
}
 
 
b'\\ No newline at end of file'