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

COVERAGE SUMMARY FOR SOURCE FILE [PCMSolverPatternMatchListener.java]

nameclass, %method, %block, %line, %
PCMSolverPatternMatchListener.java0%   (0/1)0%   (0/9)0%   (0/41)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMSolverPatternMatchListener0%   (0/1)0%   (0/9)0%   (0/41)0%   (0/14)
PCMSolverPatternMatchListener (): void 0%   (0/1)0%   (0/3)0%   (0/1)
connect (TextConsole): void 0%   (0/1)0%   (0/13)0%   (0/4)
disconnect (): void 0%   (0/1)0%   (0/1)0%   (0/1)
getCompilerFlags (): int 0%   (0/1)0%   (0/2)0%   (0/1)
getLineQualifier (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getPattern (): String 0%   (0/1)0%   (0/2)0%   (0/1)
getStream (): IOConsoleOutputStream 0%   (0/1)0%   (0/3)0%   (0/1)
matchFound (PatternMatchEvent): void 0%   (0/1)0%   (0/11)0%   (0/2)
setStream (IOConsoleOutputStream): void 0%   (0/1)0%   (0/4)0%   (0/2)

1package de.uka.ipd.sdq.pcmsolver;
2 
3import org.eclipse.swt.widgets.Display;
4import org.eclipse.ui.console.IOConsoleOutputStream;
5import org.eclipse.ui.console.IPatternMatchListener;
6import org.eclipse.ui.console.MessageConsole;
7import org.eclipse.ui.console.PatternMatchEvent;
8import org.eclipse.ui.console.TextConsole;
9 
10public class PCMSolverPatternMatchListener implements IPatternMatchListener {
11 
12        MessageConsole myConsole;
13        IOConsoleOutputStream stream;
14        
15        public int getCompilerFlags() {
16                // TODO Auto-generated method stub
17                return 0;
18        }
19 
20        public String getLineQualifier() {
21                // TODO Auto-generated method stub
22                return null;
23        }
24 
25        public String getPattern() {
26                // TODO Auto-generated method stub
27                return "INFO";
28        }
29 
30        public void connect(TextConsole console) {
31                if (console instanceof MessageConsole) {
32                        myConsole = (MessageConsole)console;
33                        stream = myConsole.newOutputStream();
34                }
35                        
36        }
37 
38        public void disconnect() {
39                // TODO Auto-generated method stub
40 
41        }
42 
43        public void matchFound(PatternMatchEvent event) {
44                stream.setColor(new org.eclipse.swt.graphics.Color(Display.getCurrent(), 0, 255, 0));
45 
46        }
47 
48        public IOConsoleOutputStream getStream() {
49                return stream;
50        }
51 
52        public void setStream(IOConsoleOutputStream stream) {
53                this.stream = stream;
54        }
55 
56}

[all classes][de.uka.ipd.sdq.pcmsolver]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov