UIPainterView.st
changeset 1230 23e5d0c133e8
parent 1225 0aa39cc5f0a3
child 1252 f886528c2b35
--- a/UIPainterView.st	Wed Sep 22 18:59:10 1999 +0200
+++ b/UIPainterView.st	Wed Sep 22 20:11:46 1999 +0200
@@ -1762,6 +1762,17 @@
     ^ (prnt parent isNil or:[prnt contents spec class isLayoutContainer not])
 !
 
+canExchangeSelectionLayouts
+    "returns true if the selection size is exactly 2
+     and all elements in the selection can be moved or aligned
+    "
+    selection size == 2 ifFalse:[
+        ^ false
+    ].
+    ^ self canMoveOrAlignSelection
+
+!
+
 canKeepLayoutInSelection
     "returns true if layout can be kept during a paste operation
     "