|
From: <caw...@us...> - 2007-08-23 20:01:29
|
Revision: 3065
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3065&view=rev
Author: cawilliams
Date: 2007-08-23 13:01:28 -0700 (Thu, 23 Aug 2007)
Log Message:
-----------
modify icons to be ruby-like, make RubyEvaluationResult implement getErrorMessages() and hasErrors() properly. Set exception on result in RubyDebuggerProxy
Modified Paths:
--------------
trunk/org.rubypeople.rdt.debug.ui/icons/full/dtool16/disp_sbook.gif
trunk/org.rubypeople.rdt.debug.ui/icons/full/etool16/disp_sbook.gif
trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/actions/EvaluateAction.java
Modified: trunk/org.rubypeople.rdt.debug.ui/icons/full/dtool16/disp_sbook.gif
===================================================================
(Binary files differ)
Modified: trunk/org.rubypeople.rdt.debug.ui/icons/full/etool16/disp_sbook.gif
===================================================================
(Binary files differ)
Modified: trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/actions/EvaluateAction.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/actions/EvaluateAction.java 2007-08-23 20:01:19 UTC (rev 3064)
+++ trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/actions/EvaluateAction.java 2007-08-23 20:01:28 UTC (rev 3065)
@@ -67,7 +67,6 @@
import org.rubypeople.rdt.internal.debug.core.RdtDebugCorePlugin;
import org.rubypeople.rdt.internal.debug.core.RubyDebuggerProxy;
import org.rubypeople.rdt.internal.debug.core.model.IEvaluationResult;
-import org.rubypeople.rdt.internal.debug.core.model.RubyProcessingException;
import org.rubypeople.rdt.internal.debug.core.model.RubyStackFrame;
import org.rubypeople.rdt.internal.debug.core.model.RubyValue;
import org.rubypeople.rdt.internal.debug.core.model.RubyVariable;
@@ -228,20 +227,16 @@
IRubyElement rubyElement= getRubyElement(stackFrame);
if (rubyElement != null) {
IRubyProject project = rubyElement.getRubyProject();
- try {
- Object selection= getSelectedObject();
- if (!(selection instanceof String)) {
- return;
- }
- String expression= (String)selection;
- setEvaluating(true);
- RubyDebuggerProxy proxy = stackFrame.getRubyDebuggerProxy();
- IEvaluationResult result = proxy.evaluate(stackFrame, expression);
- evaluationComplete(result);
+ Object selection= getSelectedObject();
+ if (!(selection instanceof String)) {
return;
- } catch (RubyProcessingException e) {
- throw new InvocationTargetException(e, getExceptionMessage(e));
}
+ String expression= (String)selection;
+ setEvaluating(true);
+ RubyDebuggerProxy proxy = stackFrame.getRubyDebuggerProxy();
+ IEvaluationResult result = proxy.evaluate(stackFrame, expression);
+ evaluationComplete(result);
+ return;
}
throw new InvocationTargetException(null, ActionMessages.Evaluate_error_message_src_context);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|