#BUGFIX
authorStefan Vogel <sv@exept.de>
Fri, 12 Feb 2016 10:42:15 +0100
changeset 16113 508badaa3a48
parent 16111 335aa560bb05
child 16114 8d5b022fe0dc
#BUGFIX class: Tools::NewSystemBrowser changed: #createBufferForCurrentClassOrSelectionInCodeView when creating a new buffer and no class is selected in the CodeView, open the new buffer on the currently selected class and method (instead of opening empty lists)
Tools__NewSystemBrowser.st
--- a/Tools__NewSystemBrowser.st	Fri Feb 12 00:07:50 2016 +0100
+++ b/Tools__NewSystemBrowser.st	Fri Feb 12 10:42:15 2016 +0100
@@ -27369,12 +27369,17 @@
 !
 
 createBufferForCurrentClassOrSelectionInCodeView
-    |navigationState cls|
+    |cls selector|
 
     cls := self selectedClassNameInCodeViewOrNil.
-    navigationState := self createBuffer.
+    cls isNil ifTrue:[
+        "no text selected in codeview, select currently selected class and method"
+        cls := self theSingleSelectedClass.
+        selector := self theSingleSelectedMethodName.
+    ].
+    self createBuffer.
     cls notNil ifTrue:[
-        self switchToClass:cls
+        self switchToClass:cls selector:selector updateHistory:selector isNil.
     ]
 !