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

COVERAGE SUMMARY FOR SOURCE FILE [PerspectivePropertyTester.java]

nameclass, %method, %block, %line, %
PerspectivePropertyTester.java0%   (0/1)0%   (0/2)0%   (0/16)0%   (0/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PerspectivePropertyTester0%   (0/1)0%   (0/2)0%   (0/16)0%   (0/5)
PerspectivePropertyTester (): void 0%   (0/1)0%   (0/3)0%   (0/1)
test (Object, String, Object [], Object): boolean 0%   (0/1)0%   (0/13)0%   (0/4)

1package de.uka.ipd.sdq.sensorframework.visualisation.perspective;
2 
3import org.eclipse.core.expressions.PropertyTester;
4import org.eclipse.ui.PlatformUI;
5 
6public class PerspectivePropertyTester extends PropertyTester {
7 
8        public boolean test(Object receiver, String property, Object[] args,
9                        Object expectedValue) {
10                try{
11                        String perspective = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getPerspective().getId();
12                        return perspective.equals(expectedValue);
13                } catch (Exception ex){
14                        return false;
15                }
16        }
17 
18}

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