Importing the XDebugProxy code in the HEAD. The repo was tagged with T_BEFORE_XDEBUGP...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugWatchExpressionResult.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
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 XDebugWatchExpressionResult implements IWatchExpressionResult {
8         private String text;
9         private IValue result;
10         private String[] err;
11
12         public XDebugWatchExpressionResult(String t, IValue v, String[] e) {
13                 text = t;
14                 result = v;
15                 err = e;
16         }
17
18         public IValue getValue() {
19                 return result;
20         }
21
22         public boolean hasErrors() {
23                 return err != null;
24         }
25
26         public String[] getErrorMessages() {
27                 return err;
28         }
29
30         public String getExpressionText() {
31                 return text;
32         }
33
34         public DebugException getException() {
35                 return null;
36         }
37 }