Programmatically Close Debug Window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Programmatically Close Debug Window

Robert Sirois
How do I programmatically close debug windows in Pharo? My image is littered with them hehe.

RS

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Programmatically Close Debug Window

Guillermo Polito
Hi!!

Evaluating

SystemWindow allInstances do:[ :window | window delete ]

should delete all windows...
You can filter them with #select:

SystemWindow allInstances select: [ :window | window ... ] thenDo:[ :window | window delete ]

What I do not exactly now is how to recongnize a debugger... Maybe their model is a Debugger instance and you can perform a #isKindOf:

Cheers!
Guille

On Tue, Nov 1, 2011 at 11:58 PM, Robert Sirois <[hidden email]> wrote:
How do I programmatically close debug windows in Pharo? My image is littered with them hehe.

RS

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Programmatically Close Debug Window

Robert Sirois
Thanks!

SystemWindow allInstances select: [:ea | ea model isMemberOf: Debugger ] thenDo: [:ea | ea delete ].

RS


Date: Wed, 2 Nov 2011 00:03:12 -0300
Subject: Re: [Seaside] Programmatically Close Debug Window
From: [hidden email]
To: [hidden email]

Hi!!

Evaluating

SystemWindow allInstances do:[ :window | window delete ]

should delete all windows...
You can filter them with #select:

SystemWindow allInstances select: [ :window | window ... ] thenDo:[ :window | window delete ]

What I do not exactly now is how to recongnize a debugger... Maybe their model is a Debugger instance and you can perform a #isKindOf:

Cheers!
Guille

On Tue, Nov 1, 2011 at 11:58 PM, Robert Sirois <[hidden email]> wrote:
How do I programmatically close debug windows in Pharo? My image is littered with them hehe.

RS

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside