Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.615.mcz==================== Summary ====================
Name: Tools-mt.615
Author: mt
Time: 1 May 2015, 7:19:00.098 pm
UUID: d3a1a446-028b-e24f-8c15-084451b30c40
Ancestors: Tools-mt.614
Use code panes in inspector and object explorer (was text panes).
=============== Diff against Tools-mt.614 ===============
Item was changed:
----- Method: Inspector>>buildCodePaneWith: (in category 'toolbuilder') -----
buildCodePaneWith: builder
| textSpec |
+ textSpec := builder pluggableCodePaneSpec new.
- textSpec := builder pluggableTextSpec new.
textSpec
model: self;
getText: #expression;
editText: #expression:;
help: #helpText;
selection: #contentsSelection;
menu: #codePaneMenu:shifted:;
askBeforeDiscardingEdits: false.
^textSpec!
Item was changed:
----- Method: ObjectExplorer>>buildWith: (in category 'toolbuilder') -----
buildWith: builder
| windowSpec treeSpec textSpec buttonSpec buttonOffset |
windowSpec := builder pluggableWindowSpec new.
windowSpec
model: self;
children: OrderedCollection new;
label: #label;
extent: self initialExtent.
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@0 corner: 1@0.71).
windowSpec children add: treeSpec.
buttonOffset := (Preferences standardButtonFont widthOfString: 'inspect') * 3/2.
+ textSpec := builder pluggableCodePaneSpec new.
- textSpec := builder pluggableTextSpec new.
textSpec
model: self;
getText: #expression;
editText: #expression:;
menu: #codePaneMenu:shifted:;
help: 'Evaluate expressions for the current tree selection...' translated;
frame: (LayoutFrame fractions: (0@0.71 corner: 1@1) offsets: (0@0 corner: buttonOffset negated@0)).
windowSpec children add: textSpec.
buttonSpec := builder pluggableButtonSpec new
model: self;
label: 'inspect';
action: #inspectObject;
help: 'Switch to an inspector tool';
frame: (LayoutFrame fractions: (1@0.71 corner: 1@1) offsets: (buttonOffset negated@0 corner: 0 @ 0)).
windowSpec children add: buttonSpec.
[^ builder build: windowSpec]
ensure: [self changed: #expandRootsRequested]!