[Pharo-project] [ANN] 10209 Watchit integration

Torsten Bergmann astares at gmx.de
Tue Jan 20 03:22:01 EST 2009

Hi Stef,

>Now it is nicely integrated in pharo.

Not yet - why not open it in a separate window instead of a plain morph on the desk?
This would be more consistent with inspect it, debug it and explore it from the same menu. 
You can also collapse the watch window and move it easily around...

see code below.



	| result |
	self handleEdit:
		[result := textMorph editor compileSelectionAsBlock.
		((result isKindOf: FakeClassPool) or: [result == #failedDoit])
			ifTrue: [^self flash]].
	(RectangleMorph new)
		layoutPolicy: TableLayout new;
		layoutInset: 3;
		listDirection: #topToBottom;
		hResizing: #shrinkWrap;
		vResizing: #shrinkWrap;
		addMorphBack: (StringMorph contents: textMorph editor selection);
		addMorphBack: ((UpdatingStringMorph on: result selector: #value)
			stepTime: 500;
			maximumWidth: nil;			
			growable: true);
		color: Color white;
		borderColor: Color black;

Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

More information about the Pharo-dev mailing list