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 [OpenAction.java]

nameclass, %method, %block, %line, %
OpenAction.java0%   (0/1)0%   (0/2)0%   (0/30)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OpenAction0%   (0/1)0%   (0/2)0%   (0/30)0%   (0/11)
OpenAction (String, String, String): void 0%   (0/1)0%   (0/10)0%   (0/4)
run (): void 0%   (0/1)0%   (0/20)0%   (0/7)

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 
10public class OpenAction extends Action {
11 
12        private String editorID;
13        private String adapterFactoryID;
14 
15        public OpenAction(String label, String adapterFactoryID, String editorID){
16                super(label);
17                this.editorID = editorID;
18                this.adapterFactoryID = adapterFactoryID;
19        }
20        
21        @Override
22        public void run() {
23                IWorkbenchPage page = VisualisationPlugin.getDefault().getWorkbench()
24                                .getActiveWorkbenchWindow().getActivePage();
25 
26                try {
27                        page.openEditor(new ConfigEditorInput(adapterFactoryID),
28                                        editorID);
29                } catch (PartInitException e) {
30                        // TODO Auto-generated catch block
31                        e.printStackTrace();
32                }
33        }
34 
35}

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