Hello Robert,
It is a standard OB filter subclassed from OBFilter. It is added to OBCodeBrowser metagraph. There are source codes in attachment.
Best regards, Juraj
On 23.6.2007, at 19:34, Robert Krahn wrote:
Hello Juraj,
From where do you call #displayString:forNode: ?
Am 23.06.2007 um 19:11 schrieb Juraj Kubelka:
Hello Robert,
Thank you!
I am playing with OB and I tried to make a filter which should display Traits' names with bold text. But it doesn't work. It displays prefix '(t) ' but nothing more. I have no idea where is the mistake. Do you have any idea? I can file out the filter class, if you wish.
displayString: aString forNode: aNode (aNode isKindOf: OBClassNode) ifFalse: [^ aString]. ^ ((aNode theClass respondsTo: #isTrait) and: [ aNode theClass isTrait ]) ifTrue: [('(t) ', aString) asText addAttribute: TextEmphasis bold ] ifFalse: ['(c) ', aString].
Thank you in advance, Juraj
On 23.6.2007, at 18:32, Robert Krahn wrote:
Hello Juraj,
the code you are looking for is in OBMethodNode>>displayString. There the text attribute TextEmphasis italic is added when the selector belongs to a trait (= is not local)
Regards Robert
Am 23.06.2007 um 17:29 schrieb Juraj Kubelka:
Hi All,
May I ask you, how is it done that Traits' method names are displayed in italic? I cannot find a code which do this.
Thank you in advance, Juraj
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners