The Trunk: Morphic-mt.1739.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.1739.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1739.mcz

==================== Summary ====================

Name: Morphic-mt.1739
Author: mt
Time: 5 March 2021, 9:19:14.941204 am
UUID: 59a78e19-2616-5c4a-84e5-27a9e63d9c2e
Ancestors: Morphic-eem.1738

Support source-code drops via method references such as from senders/implementors/message tools.

=============== Diff against Morphic-eem.1738 ===============

Item was changed:
  ----- Method: PasteUpMorph>>dropSourceCode:event: (in category 'event handling') -----
  dropSourceCode: anObject event: evt
 
+ (anObject isMethodReference and: [anObject isValid])
+ ifTrue: [^ self dropSourceCode: anObject compiledMethod event: evt].
+
  anObject isCompiledMethod
  ifTrue: [
  | tool window |
  tool := CodeHolder new
  setClass: anObject methodClass
  selector: anObject selector.
  window := ToolBuilder open: tool.
  window center: evt position.
  window bounds: (window bounds translatedToBeWithin: self bounds)].
+
-
  anObject isString
  ifTrue: [anObject edit].!