Patrick Rein uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-pre.761.mcz==================== Summary ====================
Name: Tools-pre.761
Author: pre
Time: 15 May 2017, 9:37:39.826328 pm
UUID: 8c06fe98-86ae-7d4b-b4fa-47eb181ac234
Ancestors: Tools-eem.760
Adds drag and drop support to the object explorer to make it consistent with the inspector interactions
=============== Diff against Tools-eem.760 ===============
Item was changed:
----- Method: ObjectExplorer>>buildWith: (in category 'toolbuilder') -----
buildWith: builder
| windowSpec treeSpec textSpec buttonSpec buttonOffset tool |
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:;
+ dragItem: #getDragItem:;
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
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.
tool := builder build: windowSpec.
self changed: #expandRootsRequested.
^ tool!
Item was added:
+ ----- Method: ObjectExplorer>>getDragItem: (in category 'user interface') -----
+ getDragItem: binding
+
+ ^ binding value!