Fwd: [Pharo-project] Class browser with changing title.

0 views
Skip to first unread message

Damien Cassou

unread,
Aug 20, 2009, 10:17:17 AM8/20/09
to OmniBrowser developers
On Wed, Aug 19, 2009 at 8:29 PM, Damien Cassou<damien...@gmail.com> wrote:
> Here I'm proposing a really small change to the class browser so that
> whenever a class or method is selected it's title is changed
> accordingly. The title produced is such that you can distinguish the
> browsers when looking at the taskbar (very usefull when you have many
> browsers opened). In case you like it, it would be nice to have it
> included in main pharo.

I've published 3 packages in Lukas' repo about this. In the version
loaded in Pharo, the browser did never update its title. Now it works,
even if the Polymorph task bar is not updated.

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

Colin Putney

unread,
Aug 22, 2009, 7:44:37 AM8/22/09
to omnibro...@googlegroups.com

On 20-Aug-09, at 7:17 AM, Damien Cassou wrote:

>
> On Wed, Aug 19, 2009 at 8:29 PM, Damien
> Cassou<damien...@gmail.com> wrote:
>> Here I'm proposing a really small change to the class browser so that
>> whenever a class or method is selected it's title is changed
>> accordingly. The title produced is such that you can distinguish the
>> browsers when looking at the taskbar (very usefull when you have many
>> browsers opened). In case you like it, it would be nice to have it
>> included in main pharo.
>
> I've published 3 packages in Lukas' repo about this. In the version
> loaded in Pharo, the browser did never update its title. Now it works,
> even if the Polymorph task bar is not updated.

This was the result of a bug. I'm not sure when it was introduced, but
it was in OB 2.0.2. Lukas also published a fix, which will be included
in OB 2.0.3. I prefer Lukas' fix over this one because it restore's
OB's original title-updating functionality, rather than introduces a
new announcement.

The main difference between the original behavior and Javier Pimas'
fix (this is Javier's code, right?) is that Javier displays the
selected method category as well as the class name, where as OB and
the original Squeak Browser have traditionally only displayed the
selected class. I tend to like having just the class name in the
window title myself - less clutter in the title bar. Does anybody else
have an opinion here?

Colin

Damien Cassou

unread,
Aug 22, 2009, 9:34:37 AM8/22/09
to omnibro...@googlegroups.com
On Sat, Aug 22, 2009 at 1:44 PM, Colin Putney<cpu...@wiresong.ca> wrote:
> This was the result of a bug. I'm not sure when it was introduced, but
> it was in OB 2.0.2. Lukas also published a fix, which will be included
> in OB 2.0.3. I prefer Lukas' fix over this one because it restore's
> OB's original title-updating functionality, rather than introduces a
> new announcement.
>
> The main difference between the original behavior and Javier Pimas'
> fix (this is Javier's code, right?) is that Javier displays the
> selected method category as well as the class name, where as OB and
> the original Squeak Browser have traditionally only displayed the
> selected class. I tend to like having just the class name in the
> window title myself - less clutter in the title bar. Does anybody else
> have an opinion here?

As far as I can tell, Lukas' fix also adds 'System Browser' at the
beginning of the title which is not the case of the other fix. The
string 'System Browser' is quite annoying in the task bar because you
are interested in the class and/or method name and you only see
'System Brows...'

stephane ducasse

unread,
Aug 22, 2009, 11:08:29 AM8/22/09
to omnibro...@googlegroups.com
+1
Reply all
Reply to author
Forward
0 new messages