EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.sensorframework.visualisation.perspective] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
PerspectivePropertyTester.java | 0% (0/1) | 0% (0/2) | 0% (0/16) | 0% (0/5) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class PerspectivePropertyTester | 0% (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) |
1 | package de.uka.ipd.sdq.sensorframework.visualisation.perspective; |
2 | |
3 | import org.eclipse.core.expressions.PropertyTester; |
4 | import org.eclipse.ui.PlatformUI; |
5 | |
6 | public 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 |