Fix in SmallSense::CodeNavigationService>>#button1PressForVariableNode: make sure symbol is passed to Smalltalk>>at:
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 06 Dec 2013 15:42:05 +0000
changeset 149 751b7d697444
parent 148 b06bb9f85971
child 150 f3e694a9aa12
Fix in SmallSense::CodeNavigationService>>#button1PressForVariableNode: make sure symbol is passed to Smalltalk>>at:
SmallSense__CodeNavigationService.st
--- a/SmallSense__CodeNavigationService.st	Tue Nov 26 23:02:37 2013 +0000
+++ b/SmallSense__CodeNavigationService.st	Fri Dec 06 15:42:05 2013 +0000
@@ -82,10 +82,14 @@
 !
 
 button1PressForVariableNode: node
-    | value |
+    | name value |
 
+    value := nil.
     node isGlobalVariable ifTrue:[
-        value := Smalltalk at: node name.
+        name := node name asSymbolIfInterned.
+        name notNil ifTrue:[
+            value := Smalltalk at: node name asSymbol.
+        ].
         value notNil ifTrue:[
             value isBehavior ifTrue:[
                 self browseClass: value.
@@ -96,6 +100,7 @@
     ]
 
     "Created: / 21-02-2012 / 14:30:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 06-12-2013 / 15:41:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 button2Press