1) Indeces of arrays will be surrounded by [''], so it's easier to distinguish betwee...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugWatchExpressionFactoryAdapter.java
diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugWatchExpressionFactoryAdapter.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugWatchExpressionFactoryAdapter.java
new file mode 100644 (file)
index 0000000..0658295
--- /dev/null
@@ -0,0 +1,13 @@
+package net.sourceforge.phpeclipse.xdebug.php.model;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.debug.core.model.IVariable;
+import org.eclipse.debug.ui.actions.IWatchExpressionFactoryAdapter;
+
+
+public class XDebugWatchExpressionFactoryAdapter implements IWatchExpressionFactoryAdapter {
+    public String createWatchExpression (IVariable variable) throws CoreException
+    {
+        return ((XDebugVariable) variable).getNameFull (); 
+    }
+}