[ENH/FIX] Explore locals in Outline Browser
Stephen T. Pope
stp at create.ucsb.edu
Thu Dec 16 15:31:10 UTC 1999
--------------E322F7150B21D880EE406FC1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello all,
The enclosed change set adds the ability to explore the local bindings
of a page in an outline. It also changes the outline browser's text menu
to use the ParagraphEditor's standard yellow-button menu, replacing the
'show bytecodes' item with 'expore locals'
--
stp
Stephen Travis Pope
stp at create.ucsb.edu -- http://www.create.ucsb.edu/~stp
--------------E322F7150B21D880EE406FC1
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="522A6368";
name="outline-locals.1.cs"
Content-Transfer-Encoding: 7bit
Content-Description: Unknown Document
Content-Disposition: inline;
filename="outline-locals.1.cs"
'From Squeak2.7alpha of 17 November 1999 [latest update: #1698] on 16 December 1999 at 7:17:34 am'!
!OutlineBrowser methodsFor: 'text' stamp: 'stp 12/16/1999 07:16'!
exploreLocals
"Explore the dictionary of local variables for this page."
(model at: currentCategory) bindings explore! !
!OutlineBrowser methodsFor: 'text' stamp: 'stp 12/16/1999 07:17'!
textMenu: aMenu
"Answer the menu for the text view."
"HACK..."
| pMenu labs bytes sels ind |
pMenu := ParagraphEditor yellowButtonMenu.
labs := pMenu labelString.
bytes := 'show bytecodes'.
ind := labs findString: bytes.
labs := labs copyReplaceFrom: ind to: ind + bytes size - 1with: 'explore locals'.
sels := pMenu selections copy.
sels at: 14 put: #exploreLocals.
^aMenu labels: labs lines: pMenu lineArray selections: sels! !
!Workspace methodsFor: 'accessing' stamp: 'stp 12/16/1999 07:12'!
bindings
"Answer the receiver's namespace."
^bindings! !
OutlineBrowser removeSelector: #textMenu!
--------------E322F7150B21D880EE406FC1--
More information about the Squeak-dev
mailing list
|