[Pkg] The Trunk: Tools-mt.575.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 2 09:16:34 UTC 2015


Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.575.mcz

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

Name: Tools-mt.575
Author: mt
Time: 2 April 2015, 11:16:13.988 am
UUID: 2f55228c-5225-6443-b1fb-183353e1e261
Ancestors: Tools-mt.574

Made interface of object explorer consistent with interface of inspector.

=============== Diff against Tools-mt.574 ===============

Item was changed:
  ----- Method: Inspector>>explorePointers (in category 'menu commands') -----
  explorePointers
  	self selectionIndex = 0 ifTrue: [^ self changed: #flash].
+ 	PointerExplorer openOn: self selection.!
- 	PointerExplorer new openExplorerFor: self selection!

Item was changed:
  ----- Method: Object>>explorePointers (in category '*Tools-Debugger') -----
  explorePointers
+ 	PointerExplorer openOn: self.!
- 	PointerExplorer new openExplorerFor: self!

Item was changed:
  ----- Method: Object>>exploreWithLabel: (in category '*Tools-Explorer') -----
  exploreWithLabel: label
  
+ 	^ ObjectExplorer openOn: self withLabel: label!
- 	^ ObjectExplorer new openExplorerFor: self withLabel:
- label!

Item was changed:
+ ----- Method: ObjectExplorer class>>about (in category 'defaults') -----
- ----- Method: ObjectExplorer class>>about (in category 'as yet unclassified') -----
  about
  
  	StringHolder new textContents: self comment; openLabel: 'about ',self asString!

Item was added:
+ ----- Method: ObjectExplorer class>>explore: (in category 'instance creation') -----
+ explore: anObject
+ 
+ 	^ self new explore: anObject!

Item was changed:
+ ----- Method: ObjectExplorer class>>nodeClass (in category 'defaults') -----
- ----- Method: ObjectExplorer class>>nodeClass (in category 'as yet unclassified') -----
  nodeClass
  
  	^ ObjectExplorerWrapper!

Item was added:
+ ----- Method: ObjectExplorer class>>openOn: (in category 'instance creation') -----
+ openOn: anObject
+ 
+ 	^ self openOn: anObject withLabel: nil!

Item was added:
+ ----- Method: ObjectExplorer class>>openOn:withLabel: (in category 'instance creation') -----
+ openOn: anObject withLabel: label 
+      "ObjectExplorer openOn: Smalltalk withLabel: 'Smalltalk'"
+ 
+ 	^ ToolBuilder open: (self explore: anObject) label: label!

Item was changed:
  ----- Method: ObjectExplorer>>buildWith: (in category 'toolbuilder') -----
  buildWith: builder
  
  	| windowSpec treeSpec textSpec |
  	windowSpec := builder pluggableWindowSpec new.
  	windowSpec
  		model: self;
  		children: OrderedCollection new;
  		label: #label.
  
  	treeSpec := builder pluggableTreeSpec new.
  	treeSpec
  		model: self;
  		nodeClass: self class nodeClass;
  		roots: #getList;
  		keyPress: #explorerKey:from:event:;
  		getSelected: #currentSelection;
  		setSelected: #currentSelection:;
  		setSelectedParent: #currentParent:;
  		menu: #genericMenu:;
  		autoDeselect: false;
  		columns: (ObjectExplorerWrapper showContentsInColumns
  			ifTrue: [{
  				[:listMorph | (listMorph filteredItems collect: [:item |
  					item preferredWidthOfColumn: 1]) max].
  				nil "take all the space"}]);
  		frame: (0 at 0 corner: 1 at 0.85).
  	windowSpec children add: treeSpec.
  
  	textSpec := builder pluggableTextSpec new.
  	textSpec
  		model: self;
  		menu: #codePaneMenu:shifted:;
  		help: 'Evaluate expressions for the current tree selection...' translated;
  		frame: (0 at 0.85 corner: 1 at 1).
  	windowSpec children add: textSpec.
  
+ 	[^ builder build: windowSpec]
+ 		ensure: [self changed: #expandRootsRequested]!
- 	^ builder build: windowSpec!

Item was added:
+ ----- Method: ObjectExplorer>>explore: (in category 'user interface') -----
+ explore: anObject
+ 
+ 	self rootObject: anObject.!

Item was removed:
- ----- Method: ObjectExplorer>>openExplorerFor: (in category 'user interface') -----
- openExplorerFor: anObject
- 	"ObjectExplorer new openExplorerFor: Smalltalk."
- 
- 	^ self openExplorerFor: anObject withLabel: nil!

Item was removed:
- ----- Method: ObjectExplorer>>openExplorerFor:withLabel: (in category 'user interface') -----
- openExplorerFor: anObject withLabel: label 
-      "ObjectExplorer new openExplorerFor: Smalltalk withLabel: 'Smalltalk'"
- 
- 	ToolBuilder open: self label: label.
- 	self rootObject: anObject.!

Item was changed:
+ ----- Method: PointerExplorer class>>nodeClass (in category 'defaults') -----
- ----- Method: PointerExplorer class>>nodeClass (in category 'as yet unclassified') -----
  nodeClass
  
  	^ PointerExplorerWrapper!

Item was changed:
  ----- Method: StandardToolSet class>>explore: (in category 'inspecting') -----
  explore: anObject
+ 
+ 	^ ObjectExplorer openOn: anObject!
- 	"Open an explorer on the given object."
- 	^ObjectExplorer new openExplorerFor: anObject!



More information about the Packages mailing list