Fixes for Java - flash code view when CTRL-click on type name which could not be resolved.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Tue, 26 Nov 2013 23:02:37 +0000
changeset 148 b06bb9f85971
parent 147 5c835893f71b
child 149 751b7d697444
Fixes for Java - flash code view when CTRL-click on type name which could not be resolved.
SmallSense__CodeNavigationService.st
--- a/SmallSense__CodeNavigationService.st	Mon Nov 25 12:48:40 2013 +0000
+++ b/SmallSense__CodeNavigationService.st	Tue Nov 26 23:02:37 2013 +0000
@@ -36,6 +36,12 @@
     "Created: / 24-09-2013 / 23:38:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+codeView
+    ^ codeView
+
+    "Created: / 26-11-2013 / 22:58:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 environment
     | browser |
 
@@ -213,7 +219,8 @@
                     ifFalse:[self environment allClasses select:[:cls | cls isJavaClass and:[cls name = className]]].
 
     classes isEmpty ifTrue:[
-        service codeView flash.
+        service codeView textView flash.
+        ^ self.
     ].
     classes size == 1 ifTrue:[
         service browseClass: classes anElement.    
@@ -222,7 +229,7 @@
     self halt: 'Not yet supported'.
 
     "Created: / 24-09-2013 / 10:16:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 20-10-2013 / 02:14:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 26-11-2013 / 22:59:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !CodeNavigationService::Navigator methodsFor:'navigation - Smalltalk'!