[Pharo-project] [ANN] 10209 Watchit integration

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Jan 20 03:28:36 EST 2009


as a debugging tool I'm not sure that we want to have it more complex  
and with a window now
I may be wrong so I will let the other give their point of view first


On Jan 20, 2009, at 9:22 AM, Torsten Bergmann wrote:

> 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.
>
> Bye
> Torsten
>
> -----------------------------------------------------------------------------------------
> watchIt
>
> 	| 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;
> 		openInWindow
>
> -- 
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit  
> allen: http://www.gmx.net/de/go/multimessenger
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>





More information about the Pharo-dev mailing list