'From Squeak3.1alpha of 4 February 2001 [latest update: #3553] on 9 February 2001 at 11:58:47 pm'! "Change Set: JumpingScriptors Date: 9 February 2001 Author: Andreas Raab Make the scriptors appear closer to the guy dropped. Also fixes a problem reported by Bob."! !TileLikeMorph methodsFor: 'dropping/grabbing' stamp: 'ar 2/9/2001 23:57'! justGrabbedFrom: formerOwner | editor | formerOwner ifNil:[^self]. editor _ formerOwner topEditor. editor ifNotNil:[editor scriptEdited].! ! !PhraseTileMorph methodsFor: 'mouse' stamp: 'ar 2/9/2001 17:06'! morphToDropInPasteUp: aPasteUp "Answer the morph to drop in aPasteUp, given that the receiver is the putative droppee" | actualObject itsSelector aScriptor pos | self isCommand ifFalse: [^ self]. (actualObject _ self actualObject) ifNil: [^ self]. self justGrabbedFromViewer ifFalse: [^ self]. actualObject assureUniClass. itsSelector _ self userScriptSelector. pos _ self position. aScriptor _ itsSelector isEmptyOrNil ifFalse: [actualObject scriptEditorFor: itsSelector] ifTrue: ["It's a system-defined selector; construct an anonymous scriptor around it" actualObject newScriptorAround: self]. aScriptor ifNil:[^self]. (self hasOwner: aScriptor) ifTrue:[ aScriptor fullBounds. "force layout" aScriptor position: pos - self position. ] ifFalse:[ aScriptor position: self position. ]. ^ aScriptor! ! !TileMorph methodsFor: 'dropping/grabbing' stamp: 'ar 2/9/2001 23:57'! justGrabbedFrom: formerOwner | editor | formerOwner ifNil:[^self]. editor _ formerOwner topEditor. editor ifNotNil:[editor scriptEdited].! !