1) Added a 'try catch block' to sendPacket to avoid exceptions when PHP script is...
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / watch / PHPWatchExpressionResult.java
1 package net.sourceforge.phpdt.internal.debug.core.watch;
2
3 import org.eclipse.debug.core.DebugException;
4 import org.eclipse.debug.core.model.IValue;
5 import org.eclipse.debug.core.model.IWatchExpressionResult;
6
7 public class PHPWatchExpressionResult implements IWatchExpressionResult {
8
9        String text;
10        IValue result;
11        String[] err;
12
13        public PHPWatchExpressionResult(String t,IValue v,String[] e)
14        {
15                text=t;
16                result=v;
17                err=e;
18        }
19
20        public IValue getValue() {
21                return result;
22        }
23
24        public boolean hasErrors() {
25                return err != null;
26        }
27
28        public String[] getErrorMessages() {
29                return err;
30        }
31
32        public String getExpressionText() {
33                return text;
34        }
35
36        public DebugException getException() {
37                return null;
38        }
39
40 }