--- a/UIPropertyView.st Sat Mar 01 13:43:01 1997 +0100
+++ b/UIPropertyView.st Sat Mar 01 13:44:39 1997 +0100
@@ -1416,11 +1416,13 @@
modified ifTrue:[
self modified:false.
- self isLayoutSpec ifFalse:[
- builderView updateFromSpec:specBeingEdited
- ] ifTrue:[
- layoutType notNil ifTrue:[
- self perform:(('write', layoutType asString) asSymbol)
+ self isSingleSelection ifTrue:[
+ self isLayoutSpec ifFalse:[
+ builderView updateFromSpec:specBeingEdited
+ ] ifTrue:[
+ layoutType notNil ifTrue:[
+ self perform:(('write', layoutType asString) asSymbol)
+ ]
]
]
]
@@ -1447,8 +1449,10 @@
currentSpecChannel notNil ifTrue:[
currentSpecChannel value:specBeingEdited.
- self isLayoutSpec ifTrue:[
- self showAndFetchLayout.
+ self isSingleSelection ifTrue:[
+ self isLayoutSpec ifTrue:[
+ self showAndFetchLayout.
+ ]
]
].
modified := false.
@@ -1892,6 +1896,18 @@
"returns true if current menu is a layout specification
"
^ propertyList selection == self class titleOfLayoutMenu
+!
+
+isMultiSelection
+ "returns true in case of a multiple selection
+ "
+ ^ builderView numberOfSelections > 1
+!
+
+isSingleSelection
+ "returns true in case of a single selection
+ "
+ ^ currentView notNil
! !
!UIPropertyView class methodsFor:'documentation'!