[squeak-dev] The Trunk: Tools-mt.674.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Feb 17 19:29:10 UTC 2016

Marcel Taeumel uploaded a new version of Tools to project The Trunk:

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

Name: Tools-mt.674
Author: mt
Time: 17 February 2016, 8:28:01.820602 pm
UUID: 850d9c15-4a2c-4b60-b930-1e2dbe9613e1
Ancestors: Tools-mt.673

Let inspectors only accept drops from other inspectors.

=============== Diff against Tools-mt.673 ===============

Item was changed:
  ----- Method: Inspector>>buildFieldListWith: (in category 'toolbuilder') -----
  buildFieldListWith: builder
  	| listSpec |
  	listSpec := builder pluggableListSpec new.
  		model: self;
  		list: #fieldList; 
  		getIndex: #selectionIndex; 
  		setIndex: #toggleIndex:; 
  		menu: #fieldListMenu:; 
  		dragItem: #dragFromFieldList:;
  		dropItem: #dropOnFieldList:at:;
+ 		dropAccept: #wantsDropOnFieldList:type:source:;
  		keyPress: #inspectorKey:from:.

Item was added:
+ ----- Method: Inspector>>wantsDropOnFieldList:type:source: (in category 'drag-drop') -----
+ wantsDropOnFieldList: anObject type: type source: source
+ 	^ (source respondsTo: #model) and: [source model isKindOf: Inspector]!

More information about the Squeak-dev mailing list