|
From: <caw...@us...> - 2007-08-15 17:39:49
|
Revision: 2984
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2984&view=rev
Author: cawilliams
Date: 2007-08-15 10:39:48 -0700 (Wed, 15 Aug 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyValue.java
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyVariable.java
Modified: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyValue.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyValue.java 2007-08-15 17:36:01 UTC (rev 2983)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyValue.java 2007-08-15 17:39:48 UTC (rev 2984)
@@ -115,4 +115,8 @@
return this.getValueString() ;
}
+ public RubyVariable getOwner() {
+ return owner;
+ }
+
}
Modified: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyVariable.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyVariable.java 2007-08-15 17:36:01 UTC (rev 2983)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/model/RubyVariable.java 2007-08-15 17:39:48 UTC (rev 2984)
@@ -113,7 +113,13 @@
* @see org.eclipse.debug.core.model.IValueModification#setValue(IValue)
*/
public void setValue(IValue value) throws DebugException {
- setValue(value.getValueString());
+ if (value instanceof RubyValue) {
+ RubyValue val = (RubyValue) value;
+ RubyVariable var = val.getOwner();
+ setValue(var.getName()); // just do a basic assignment
+ } else {
+ setValue(value.getValueString());
+ }
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|