Thanks Steven - exactly what I needed to know!

Cheers,

Stewart

On Tue, Apr 26, 2022 at 10:08 PM Steven Costiou <steven.cost...@kloum.io>
wrote:

> Hi,
>
> in Pharo 9-11, from the StDebugger you can access the debugged process
> using
>
> self session interruptedProcess name
>
> In the debugger class you can prepend that instruction in the window title
> update methods:
>
> StDebugger>>initializeWindow: aWindowPresenter
>
>     super initializeWindow: aWindowPresenter.
>     aWindowPresenter
>         title: self session interruptedProcess name , ': '
>             , self debuggerActionModel statusStringForContext;
>         initialExtent: self initialExtent;
>         whenClosedDo: [ self clear ].
>
>     self initializeShortcuts: aWindowPresenter
>
>
>
> StDebugger>>newTitle
>
>     ^ self session interruptedProcess name , ': '
>       , self debuggerActionModel statusStringForContext
>
>
>
> There is no other ways yet to customize the window title.
>
> I do not know how to do it in prior versions of Pharo.
>
> Steven.
>
>
>
> Le 2022-04-26 10:45, Stewart MacLean a écrit :
>
> Hi,
>
> I am working on a multi green and OS threaded implementation of Apple's
> Bonjour service discovery.
>
> I'd like to show the current Smalltalk process name in the Halt window
> title.
>
> Any clues are very much appreciated.
>
> Thanks,
>
> Stewart
>
>
>

Reply via email to