#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sun, 23 Sep 2018 23:32:10 +0200
changeset 8481 ed35072b1e38
parent 8480 23987083e4e9
child 8482 cf5849dd8be7
#REFACTORING by cg class: WindowGroup class added: #allTopViews
WindowGroup.st
--- a/WindowGroup.st	Sat Sep 22 03:33:39 2018 +0200
+++ b/WindowGroup.st	Sun Sep 23 23:32:10 2018 +0200
@@ -394,6 +394,31 @@
 
 !
 
+allTopViews
+    |allWindowGroups allTopViews|
+
+    allTopViews := OrderedCollection new.
+    
+    allWindowGroups := WindowGroup scheduledWindowGroups.
+    allWindowGroups do:[:wg |
+        wg notNil ifTrue:[
+            (wg process notNil
+            or:[wg isModal and:[wg previousGroup notNil]]) ifTrue:[
+                (wg topViews ? #()) do:[:eachTopView |
+                    |element icon|
+
+                    (eachTopView id notNil)  ifTrue:[
+                        allTopViews add:eachTopView
+                    ]
+                ]
+            ]
+        ]
+    ].
+    ^ allTopViews
+
+    "Created: / 23-09-2018 / 23:30:44 / Claus Gittinger"
+!
+
 flushCachedActiveGroup
     self setActiveGroup:nil
 !