care for eval workspace
authorClaus Gittinger <cg@exept.de>
Wed, 21 Feb 2007 16:03:02 +0100
changeset 7663 c11efe4cbcf3
parent 7662 9ad6030ecba2
child 7664 a6ad7a99ddad
care for eval workspace
MultiViewToolApplication.st
--- a/MultiViewToolApplication.st	Wed Feb 21 16:01:30 2007 +0100
+++ b/MultiViewToolApplication.st	Wed Feb 21 16:03:02 2007 +0100
@@ -967,23 +967,22 @@
     |view|
 
     view := aView.
+
     (view isScrollWrapper) ifTrue:[
         view := view scrolledView.
         view isNil ifTrue:[^ nil].
     ].
+
     (view isTextView) ifFalse:[
-        (view isKindOf:InspectorView) ifFalse:[
-            ^ nil
-        ].
-        view := view workspace.
-        (view isScrollWrapper) ifTrue:[
-            view := view scrolledView
+        (view isKindOf:InspectorView) ifTrue:[
+            view := view workspace.
+            (view isScrollWrapper) ifTrue:[
+                view := view scrolledView
+            ].
         ].
     ].
-    (view isTextView) ifFalse:[
-        ^ nil
-    ].
-    ^ view
+    (view isTextView) ifTrue:[^ view].
+    ^ view allSubViewsDetect:[:v| v name = #Workspace] ifNone:nil.
 ! !
 
 !MultiViewToolApplication methodsFor:'user actions'!
@@ -1044,5 +1043,5 @@
 !MultiViewToolApplication class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/MultiViewToolApplication.st,v 1.14 2007-02-19 17:14:05 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/MultiViewToolApplication.st,v 1.15 2007-02-21 15:03:02 cg Exp $'
 ! !