EMMA Coverage Report (generated Mon Sep 29 15:05:28 EDT 2008)
[all classes][org.eclipse.ui.internal.views.markers]

COVERAGE SUMMARY FOR SOURCE FILE [FileMarkerPropertyTester.java]

nameclass, %method, %block, %line, %
FileMarkerPropertyTester.java0%   (0/1)0%   (0/3)0%   (0/21)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FileMarkerPropertyTester0%   (0/1)0%   (0/3)0%   (0/21)0%   (0/8)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
FileMarkerPropertyTester (): void 0%   (0/1)0%   (0/3)0%   (0/2)
test (Object, String, Object [], Object): boolean 0%   (0/1)0%   (0/15)0%   (0/4)

1/*******************************************************************************
2 * Copyright (c) 2007, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 *     IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 
12package org.eclipse.ui.internal.views.markers;
13 
14import org.eclipse.core.expressions.PropertyTester;
15import org.eclipse.core.resources.IResource;
16 
17/**
18 * FileMarkerPropertyTester is a property tester for a marker entry to see if it
19 * is a marker that has a file behind it.
20 * 
21 * @since 3.4
22 * 
23 */
24public class FileMarkerPropertyTester extends PropertyTester {
25 
26        private static final Object FILE_MARKER = "fileMarker"; //$NON-NLS-1$
27 
28        /**
29         * Create a new instance of the receiver.
30         */
31        public FileMarkerPropertyTester() {
32                super();
33        }
34 
35        /* (non-Javadoc)
36         * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
37         */
38        public boolean test(Object receiver, String property, Object[] args,
39                        Object expectedValue) {
40                if (property.equals(FILE_MARKER)) {
41                        if (((MarkerEntry) receiver).getMarker().getResource().getType() == IResource.FILE)
42                                return true;
43                }
44                return false;
45        }
46 
47}

[all classes][org.eclipse.ui.internal.views.markers]
EMMA 2.0.5312 EclEmma Fix 1 (C) Vladimir Roubtsov