logo       

Re: Omnibrowser, italic Traits' method names: msg#00093

lang.smalltalk.squeak.beginners

Subject: Re: Omnibrowser, italic Traits' method names

It is a standard OB filter subclassed from OBFilter. It is added to
OBCodeBrowser metagraph. There are source codes in attachment.

Have a look at OB-Refactory, it uses filters to show elements within
an environment in bold:

displayString: aString forParent: aParentNode child: aNode
"Display elements that are part of the environment in bold."

^ (mode = #highlight and: [ aNode withinBrowserEnvironment: environment
])
ifTrue: [ Text string: aString attribute: TextEmphasis bold ]
ifFalse: [ aString ]

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise