EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012) |
---|
[all classes][de.uka.ipd.sdq.pcmbench.tabs] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
PropertyTypeMapper.java | 0% (0/1) | 0% (0/2) | 0% (0/15) | 0% (0/5) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class PropertyTypeMapper | 0% (0/1) | 0% (0/2) | 0% (0/15) | 0% (0/5) |
PropertyTypeMapper (): void | 0% (0/1) | 0% (0/3) | 0% (0/1) | |
mapType (Object): Class | 0% (0/1) | 0% (0/12) | 0% (0/4) |
1 | package de.uka.ipd.sdq.pcmbench.tabs; |
2 | |
3 | import org.eclipse.emf.ecore.EObject; |
4 | import org.eclipse.ui.views.properties.tabbed.AbstractTypeMapper; |
5 | |
6 | |
7 | /** |
8 | * @author Snowball |
9 | * The necessary PropertyTypeMapper. We react on any EMF object. |
10 | */ |
11 | public class PropertyTypeMapper extends AbstractTypeMapper { |
12 | |
13 | @Override |
14 | public Class<?> mapType(Object object) { |
15 | Class<?> type = object.getClass(); |
16 | if (object instanceof EObject) { |
17 | return type; |
18 | } |
19 | return super.mapType(object); |
20 | } |
21 | |
22 | } |
[all classes][de.uka.ipd.sdq.pcmbench.tabs] |
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov |