Nicolas Cellier uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-nice.1411.mcz
==================== Summary ====================
Name: Morphic-nice.1411
Author: nice
Time: 6 April 2018, 12:18:50.18955 pm
UUID: b1fb10c7-ba0f-7f41-a17f-1cdfd5e60e85
Ancestors: Morphic-mt.1410
Fix http://bugs.squeak.org/view.php?id=7863 can't undo paste initials
=============== Diff against Morphic-mt.1410 ===============
Item was changed:
----- Method: TextEditor>>pasteInitials: (in category 'editing keys') -----
pasteInitials: aKeyboardEvent
"Replace the current text selection by an authorship name/date stamp; invoked by cmd-shift-v, easy way to put an authorship stamp in the comments of an editor."
self insertAndCloseTypeIn.
+ self openTypeIn.
self replace: self selectionInterval with: (Text fromString: Utilities changeStamp) and: [self selectAt: self stopIndex].
+ self closeTypeIn.
^ true!
Marcel Taeumel uploaded a new version of 60Deprecated to project The Trunk:
http://source.squeak.org/trunk/60Deprecated-mt.14.mcz
==================== Summary ====================
Name: 60Deprecated-mt.14
Author: mt
Time: 5 April 2018, 10:31:02.988307 am
UUID: d86c101d-94ec-4a42-add5-f8934e606243
Ancestors: 60Deprecated-mt.13
No need for #exploreAndYourself anymore.
=============== Diff against 60Deprecated-mt.13 ===============
Item was added:
+ ----- Method: Object>>exploreAndYourself (in category '*60Deprecated-Tools') -----
+ exploreAndYourself
+
+ self deprecated: 'Use #explore because it does not return the tool window anymore. Only calls via ToolSet do so.'.
+ self explore!
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.804.mcz
==================== Summary ====================
Name: Tools-mt.804
Author: mt
Time: 5 April 2018, 10:29:51.105307 am
UUID: 7490573c-8cd9-0d46-afe3-bea1c791066d
Ancestors: Tools-mt.803
Consistently return the domain object in question for any inspect/explore/browse call to it.
Background: We did change the semantics of #inspect for the Squeak 5.1 release to harmonize #explore. After several ongoing discussions with Chris (cmm), we found a more usefull consent. That is, call ToolSet directly if you want to gain access to the created tool window(s). Call the object directly to get the object back. Now you can sprinkle #inspect, #explore, #browse etc. in your code during exploratory debugging sessions again.
Let's hope this works for everybody. See the deprecated #exploreAndYourself to better understand what is not required anymore.
=============== Diff against Tools-mt.803 ===============
Item was changed:
----- Method: Inspector>>exploreObject (in category 'toolbuilder') -----
exploreObject
"Switch to an explorer tool."
| window currentBounds |
currentBounds := ToolBuilder findDefault getBoundsForWindow: self containingWindow.
"Close first because MVC fiddles around with processes."
self changed: #close.
+ window := ToolSet explore: self object.
- window := self object explore.
"---- In MVC, the lines after this will not be executed ---"
window model setExpression: self expression.
ToolBuilder findDefault setBoundsForWindow: window to: currentBounds.!
Item was changed:
----- Method: Object>>basicInspect (in category '*Tools-inspecting') -----
basicInspect
"Create and schedule an Inspector in which the user can examine the
receiver's variables. This method should not be overriden."
+ ToolSet basicInspect: self!
- ^ToolSet basicInspect: self!
Item was changed:
----- Method: Object>>browse (in category '*Tools-Browsing') -----
browse
+ ToolSet browseClass: self class!
- ^ToolSet browseClass: self class!
Item was changed:
----- Method: Object>>explore (in category '*Tools-Explorer') -----
explore
+ ToolSet explore: self!
- ^ToolSet explore: self!
Item was removed:
- ----- Method: Object>>exploreAndYourself (in category '*Tools-Explorer') -----
- exploreAndYourself
- "i.e. explore; yourself. Thisway i can peek w/o typing all the parentheses"
- self explore.
- ^self!
Item was changed:
----- Method: Object>>explorePointers (in category '*Tools-Debugger') -----
explorePointers
+ PointerExplorer openOn: self!
- PointerExplorer openOn: self.!
Item was changed:
----- Method: Object>>exploreWithLabel: (in category '*Tools-Explorer') -----
exploreWithLabel: label
+ ToolSet explore: self label: label!
-
- ^ ObjectExplorer openOn: self withLabel: label!
Item was changed:
----- Method: Object>>inspect (in category '*Tools-inspecting') -----
inspect
"Create and schedule an Inspector in which the user can examine the receiver's variables."
+ ToolSet inspect: self!
- ^ ToolSet inspect: self!
Item was changed:
----- Method: Object>>inspectWithLabel: (in category '*Tools-inspecting') -----
inspectWithLabel: aLabel
"Create and schedule an Inspector in which the user can examine the receiver's variables."
+ ToolSet inspect: self label: aLabel!
- ^ToolSet inspect: self label: aLabel!
Item was changed:
----- Method: ObjectExplorer>>inspectObject (in category 'toolbuilder') -----
inspectObject
"Switch to an inspector tool."
| window currentBounds |
currentBounds := ToolBuilder findDefault getBoundsForWindow: self containingWindow.
"Close first because MVC fiddles around with processes."
self changed: #close.
+ window := ToolSet inspect: self rootObject.
- window := self rootObject inspect.
"---- In MVC, the lines after this will not be executed ---"
window model setExpression: self expression.
ToolBuilder findDefault setBoundsForWindow: window to: currentBounds.!
Item was added:
+ ----- Method: StandardToolSet class>>explore:label: (in category 'inspecting') -----
+ explore: anObject label: label
+
+ ^ ObjectExplorer openOn: anObject withLabel: label!
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1014.mcz
==================== Summary ====================
Name: System-mt.1014
Author: mt
Time: 5 April 2018, 10:22:30.974307 am
UUID: 8650d884-c761-f240-a1c7-5f04eb83a0a9
Ancestors: System-mt.1013
Adds #explore:label: to tool set to mirror #inspect:label: and hence make this Inspector/Explorer dualism more consistent.
=============== Diff against System-mt.1013 ===============
Item was added:
+ ----- Method: ToolSet class>>explore:label: (in category 'inspecting') -----
+ explore: anObject label: aString
+ "Open an explorer on the given object."
+ self default ifNil:[^self inform: 'Cannot explore - no ToolSet present'].
+ ^self default explore: anObject label: aString!
Marcel Taeumel uploaded a new version of 60Deprecated to project The Trunk:
http://source.squeak.org/trunk/60Deprecated-mt.13.mcz
==================== Summary ====================
Name: 60Deprecated-mt.13
Author: mt
Time: 5 April 2018, 9:57:04.971457 am
UUID: 29391520-9b58-8e4d-9fa1-d3a4f896668f
Ancestors: 60Deprecated-mt.12
Adds deprecation for window re-use.
=============== Diff against 60Deprecated-mt.12 ===============
Item was added:
+ ----- Method: SystemWindow>>anyOpenWindowLikeMe (in category '*60Deprecated-open/close') -----
+ anyOpenWindowLikeMe
+
+ self deprecated: 'Use #anyOpenWindowLikeMe: passing a concrete world object.'.
+ ^ self anyOpenWindowLikeMeIn: Project current world!
Chris Muller uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-cmm.1409.mcz
==================== Summary ====================
Name: Morphic-cmm.1409
Author: cmm
Time: 4 April 2018, 2:30:02.510117 pm
UUID: 6d625668-7bfe-4baa-8c15-ea49525a34dd
Ancestors: Morphic-cmm.1408
Slightly better fix (thanks Tim) which uses the World passed-in to the sender rather than the global World.
=============== Diff against Morphic-cmm.1408 ===============
Item was removed:
- ----- Method: SystemWindow>>anyOpenWindowLikeMe (in category 'open/close') -----
- anyOpenWindowLikeMe
-
- self class reuseWindows ifFalse: [ ^Array empty ].
- ^ SystemWindow
- windowsIn: World
- satisfying:
- [ : each |
- each model class = self model class
- and: [ (each model respondsTo: #representsSameBrowseeAs:)
- and: [ each model representsSameBrowseeAs: self model ] ] ]
- !
Item was added:
+ ----- Method: SystemWindow>>anyOpenWindowLikeMeIn: (in category 'open/close') -----
+ anyOpenWindowLikeMeIn: aPasteUpMorph
+ self class reuseWindows ifFalse: [ ^Array empty ].
+ ^ SystemWindow
+ windowsIn: aPasteUpMorph
+ satisfying:
+ [ : each |
+ each model class = self model class
+ and: [ (each model respondsTo: #representsSameBrowseeAs:)
+ and: [ each model representsSameBrowseeAs: self model ] ] ]
+ !
Item was changed:
----- Method: SystemWindow>>openInWorld: (in category 'open/close') -----
openInWorld: aWorld
"This msg and its callees result in the window being activeOnlyOnTop"
+ ^ (self anyOpenWindowLikeMeIn: aWorld)
- ^ self anyOpenWindowLikeMe
ifEmpty:
[ self
bounds: (RealEstateAgent initialFrameFor: self world: aWorld) ;
openAsIsIn: aWorld ]
ifNotEmptyDo:
[ : windows |
windows anyOne
expand ;
beKeyWindow ;
postAcceptBrowseFor: self ].!
Item was changed:
----- Method: SystemWindow>>openInWorld:extent: (in category 'open/close') -----
openInWorld: aWorld extent: extent
"This msg and its callees result in the window being activeOnlyOnTop"
+ ^ (self anyOpenWindowLikeMeIn: aWorld)
- ^ self anyOpenWindowLikeMe
ifEmpty:
[ self
position: (RealEstateAgent initialFrameFor: self initialExtent: extent world: aWorld) topLeft ;
extent: extent.
self openAsIsIn: aWorld ]
ifNotEmptyDo:
[ : windows |
windows anyOne
expand ;
beKeyWindow ;
postAcceptBrowseFor: self ].!