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

COVERAGE SUMMARY FOR SOURCE FILE [XMLDocumentProvider.java]

nameclass, %method, %block, %line, %
XMLDocumentProvider.java0%   (0/1)0%   (0/2)0%   (0/34)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class XMLDocumentProvider0%   (0/1)0%   (0/2)0%   (0/34)0%   (0/12)
XMLDocumentProvider (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createDocument (Object): IDocument 0%   (0/1)0%   (0/31)0%   (0/11)

1package de.uka.ipd.sdq.pcm.gmf.resource.editors;
2 
3import org.eclipse.core.runtime.CoreException;
4import org.eclipse.jface.text.IDocument;
5import org.eclipse.jface.text.IDocumentPartitioner;
6import org.eclipse.jface.text.rules.FastPartitioner;
7import org.eclipse.ui.editors.text.FileDocumentProvider;
8 
9public class XMLDocumentProvider extends FileDocumentProvider {
10 
11        protected IDocument createDocument(Object element) throws CoreException {
12                IDocument document = super.createDocument(element);
13                if (document != null) {
14                        IDocumentPartitioner partitioner =
15                                new FastPartitioner(
16                                        new XMLPartitionScanner(),
17                                        new String[] {
18                                                XMLPartitionScanner.XML_TAG,
19                                                XMLPartitionScanner.XML_COMMENT });
20                        partitioner.connect(document);
21                        document.setDocumentPartitioner(partitioner);
22                }
23                return document;
24        }
25}

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