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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelMatchingStrategy.java]

nameclass, %method, %block, %line, %
PalladioComponentModelMatchingStrategy.java0%   (0/1)0%   (0/2)0%   (0/32)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelMatchingStrategy0%   (0/1)0%   (0/2)0%   (0/32)0%   (0/11)
PalladioComponentModelMatchingStrategy (): void 0%   (0/1)0%   (0/3)0%   (0/1)
matches (IEditorReference, IEditorInput): boolean 0%   (0/1)0%   (0/29)0%   (0/10)

1/*
2 * Copyright 2007, SDQ, IPD, U KA
3 */
4package de.uka.ipd.sdq.pcm.gmf.allocation.part;
5 
6import org.eclipse.emf.common.ui.URIEditorInput;
7import org.eclipse.ui.IEditorInput;
8import org.eclipse.ui.IEditorMatchingStrategy;
9import org.eclipse.ui.IEditorReference;
10import org.eclipse.ui.PartInitException;
11 
12/**
13 * @generated
14 */
15public class PalladioComponentModelMatchingStrategy implements
16                IEditorMatchingStrategy {
17 
18        /**
19         * @generated
20         */
21        public boolean matches(IEditorReference editorRef, IEditorInput input) {
22                IEditorInput editorInput;
23                try {
24                        editorInput = editorRef.getEditorInput();
25                } catch (PartInitException e) {
26                        return false;
27                }
28 
29                if (editorInput.equals(input)) {
30                        return true;
31                }
32                if (editorInput instanceof URIEditorInput
33                                && input instanceof URIEditorInput) {
34                        return ((URIEditorInput) editorInput).getURI().equals(
35                                        ((URIEditorInput) input).getURI());
36                }
37                return false;
38        }
39 
40}

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