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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelNavigatorSorter.java]

nameclass, %method, %block, %line, %
PalladioComponentModelNavigatorSorter.java0%   (0/1)0%   (0/2)0%   (0/22)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelNavigatorSorter0%   (0/1)0%   (0/2)0%   (0/22)0%   (0/8)
PalladioComponentModelNavigatorSorter (): void 0%   (0/1)0%   (0/3)0%   (0/1)
category (Object): int 0%   (0/1)0%   (0/19)0%   (0/7)

1/*
2 *Copyright 2007, IPD, SDQ, University of Karlsruhe
3 */
4package de.uka.ipd.sdq.pcm.gmf.repository.navigator;
5 
6import org.eclipse.jface.viewers.ViewerSorter;
7 
8import de.uka.ipd.sdq.pcm.gmf.repository.part.PalladioComponentModelVisualIDRegistry;
9 
10/**
11 * @generated
12 */
13public class PalladioComponentModelNavigatorSorter extends ViewerSorter {
14 
15        /**
16         * @generated
17         */
18        private static final int GROUP_CATEGORY = 7110;
19 
20        /**
21         * @generated
22         */
23        private static final int SHORTCUTS_CATEGORY = 7109;
24 
25        /**
26         * @generated
27         */
28        public int category(Object element) {
29                if (element instanceof PalladioComponentModelNavigatorItem) {
30                        PalladioComponentModelNavigatorItem item = (PalladioComponentModelNavigatorItem) element;
31                        if (item.getView().getEAnnotation("Shortcut") != null) { //$NON-NLS-1$
32                                return SHORTCUTS_CATEGORY;
33                        }
34                        return PalladioComponentModelVisualIDRegistry.getVisualID(item
35                                        .getView());
36                }
37                return GROUP_CATEGORY;
38        }
39 
40}

[all classes][de.uka.ipd.sdq.pcm.gmf.repository.navigator]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov