EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.sensorframework.visualisation.menu]

COVERAGE SUMMARY FOR SOURCE FILE [DoubleClickAction.java]

nameclass, %method, %block, %line, %
DoubleClickAction.java0%   (0/1)0%   (0/2)0%   (0/26)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DoubleClickAction0%   (0/1)0%   (0/2)0%   (0/26)0%   (0/10)
DoubleClickAction (ConfigEditorInput, String): void 0%   (0/1)0%   (0/9)0%   (0/4)
run (): void 0%   (0/1)0%   (0/17)0%   (0/6)

1package de.uka.ipd.sdq.sensorframework.visualisation.menu;
2 
3import org.eclipse.jface.action.Action;
4import org.eclipse.ui.IWorkbenchPage;
5import org.eclipse.ui.PartInitException;
6 
7import de.uka.ipd.sdq.sensorframework.visualisation.VisualisationPlugin;
8import de.uka.ipd.sdq.sensorframework.visualisation.editor.ConfigEditorInput;
9 
10/** @author roman */
11public class DoubleClickAction extends Action {
12 
13        private ConfigEditorInput editorInput;
14        private String editorID;
15        
16        public DoubleClickAction(ConfigEditorInput editorInput, String editorID) {
17                this.editorInput = editorInput;
18                this.editorID = editorID;
19        }
20 
21        /* (non-Javadoc)
22         * @see org.eclipse.jface.action.Action#run()
23         */
24        @Override
25        public void run() {
26                IWorkbenchPage page = VisualisationPlugin.getDefault().getWorkbench()
27                                .getActiveWorkbenchWindow().getActivePage();
28 
29                try {
30                        page.openEditor(editorInput, editorID);
31                } catch (PartInitException e) {
32                        // TODO Auto-generated catch block
33                        e.printStackTrace();
34                }
35        }
36 
37}

[all classes][de.uka.ipd.sdq.sensorframework.visualisation.menu]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov