class: Workspace
authorClaus Gittinger <cg@exept.de>
Tue, 24 Sep 2013 11:21:06 +0200
changeset 4783 b24f6d37fa8c
parent 4782 353079ce0c9d
child 4784 c8866890363a
class: Workspace fix (hack) around jans changes, which broke DWIM in debugger
Workspace.st
--- a/Workspace.st	Mon Sep 23 17:54:21 2013 +0200
+++ b/Workspace.st	Tue Sep 24 11:21:06 2013 +0200
@@ -2381,7 +2381,12 @@
 
     completionProcess := 
         [
-            |suggestions implementations actions anyFound|
+            |suggestions implementations actions anyFound contextOrNil|
+
+            "/ a hack
+            (editView topView isKindOf: DebugView) ifTrue:[
+                contextOrNil := editView topView selectedContext
+            ].
 
             UserInformation ignoreIn:[
                 anyFound := false.
@@ -2389,7 +2394,7 @@
                     codeCompletionForLanguage: editView editedLanguage
                     method:editView editedMethod
                     orClass:editView editedClass 
-                    context:nil 
+                    context:contextOrNil 
                     codeView:editView 
                     into:[:listOfSuggestions :listOfActions :titleWhenAsking |
 "/ (listOfSuggestions contains:[:l | l isEmptyOrNil]) ifTrue:[self halt].
@@ -2599,10 +2604,10 @@
 !Workspace class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/Workspace.st,v 1.306 2013-09-18 13:23:11 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/Workspace.st,v 1.307 2013-09-24 09:21:06 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg/Workspace.st,v 1.306 2013-09-18 13:23:11 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/Workspace.st,v 1.307 2013-09-24 09:21:06 cg Exp $'
 ! !