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

COVERAGE SUMMARY FOR SOURCE FILE [PCMBenchApplication.java]

nameclass, %method, %block, %line, %
PCMBenchApplication.java0%   (0/2)0%   (0/5)0%   (0/69)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMBenchApplication0%   (0/1)0%   (0/3)0%   (0/48)0%   (0/15)
PCMBenchApplication (): void 0%   (0/1)0%   (0/3)0%   (0/1)
start (IApplicationContext): Object 0%   (0/1)0%   (0/28)0%   (0/8)
stop (): void 0%   (0/1)0%   (0/17)0%   (0/6)
     
class PCMBenchApplication$10%   (0/1)0%   (0/2)0%   (0/21)0%   (0/5)
PCMBenchApplication$1 (PCMBenchApplication, Display, IWorkbench): void 0%   (0/1)0%   (0/12)0%   (0/2)
run (): void 0%   (0/1)0%   (0/9)0%   (0/3)

1package de.uka.ipd.sdq.pcmbench.application;
2 
3import org.eclipse.equinox.app.IApplication;
4import org.eclipse.equinox.app.IApplicationContext;
5import org.eclipse.swt.widgets.Display;
6import org.eclipse.ui.IWorkbench;
7import org.eclipse.ui.PlatformUI;
8 
9public class PCMBenchApplication implements IApplication {
10 
11        
12        public Object start(IApplicationContext context) throws Exception {
13                Display display = PlatformUI.createDisplay();
14                try {
15                        int returnCode = PlatformUI.createAndRunWorkbench(display, new PCMBenchWorkbenchAdvisor());
16                        if (returnCode == PlatformUI.RETURN_RESTART) {
17                                return IApplication.EXIT_RESTART;
18                        }
19                        return IApplication.EXIT_OK;
20                } finally {
21                        display.dispose();
22                }
23        }
24 
25        
26        public void stop() {
27                final IWorkbench workbench = PlatformUI.getWorkbench();
28                if (workbench == null)
29                        return;
30                final Display display = workbench.getDisplay();
31                display.syncExec(new Runnable() {
32                        public void run() {
33                                if (!display.isDisposed())
34                                        workbench.close();
35                        }
36                });
37        }
38 
39}

[all classes][de.uka.ipd.sdq.pcmbench.application]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov