[ENH] workspaceBindingsViewer
Nick Brown
maillist at bredon-gill.demon.co.uk
Mon Sep 9 00:58:28 UTC 2002
Lex, this looks very useful. Thanks. I hit a small bug, though.
1. open a new workspace
2. show variable bindings
3. x := 5 (doit)
...causes a subscript out of bounds error. The method
WorkspaceBindingsInspector>>bindingsChanged can't handle the instvar
selectionIndex being zero. I took a look through the methods which
store into selectionIndex, and there are about 6 of them that set this
to zero, so I suppose we really ought to handle it.... ;-)
I modified the method to give it the same behaviour for
(selectionIndex = zero) as it already has for (selectionIndex isNil).
Regards,
Nick Brown
On Sun, 8 Sep 2002 16:48:17 -0400, Lex Spoon wrote:
>This is something I've long desired. When you're working in the
>traditional Smalltalk dialect, the workspace can be an excellent
>assembly and experimentation area. The variable bindings of workspaces
>are a big part of this functionality.
>
>Unfortunately, the variable bindings are hidden behind the scenes: you
>can only view them by using an inspector on the workspace and drilling
>down to the "bindings" variable. With this changeset, however, you can
>select an item from the workspace's window menu to put them right up
>front. A little inspector will open up, letting you view, modify,
>remove, or even add workspace variables. -Lex
>
>
>
>from preamble:
>
>"Change Set: workspaceBindingsViewer
>Date: 8 September 2002
>Author: Lex Spoon
>
>Add an option to workspaces to show their bindings."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WorkspaceBindingsInspector-bindingsChanged.st
Type: application/octet-stream
Size: 527 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020909/507938e1/WorkspaceBindingsInspector-bindingsChanged.obj
More information about the Squeak-dev
mailing list
|