Comment in OB

Alexandre Bergel Alexandre.Bergel at cs.tcd.ie
Tue May 30 09:58:47 UTC 2006


Another thing I was missing with OB, is to have the --all-- method  
category automatically selected when I select a class. I attached  
a .cs that add this.

Here are the changes I did:
	- Instead of sending #nodeChanged, #nodeChanged: theSelectedNode is  
sent
	- OBPanel>>nodeChanged: aNode  ^ self nodeChanged
	- OBBrowser>>nodeChanged: aNode ^ self nodeChanged
	- OBSystemBrowser>>nodeChanged: aNode
	| methodCategoryColumn |
	super nodeChanged: aNode.
	
	(aNode isKindOf: OBClassNode)
		ifTrue: [
			methodCategoryColumn :=
				(panels select: [:p| p isKindOf: OBColumnPanel]) first columns  
third.
			(methodCategoryColumn getChildren first) ifNotNil: [
				methodCategoryColumn select: (methodCategoryColumn getChildren  
first).]]

I am not sure about this last method. Looks like a hack now... But it  
works fine.

Cheers,
Alexandre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OBAllMethods.1.cs
Type: application/octet-stream
Size: 999 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060530/da52f02d/OBAllMethods.1.obj
-------------- next part --------------


Am May 29, 2006 um 8:09 PM schrieb Lukas Renggli:

> Hi Colin,
>
>> I feel that it is currently not possible in OB to have a second pane
>> when I select a class. The model needs to be extended I guess. This
>> might be a very interesting feature. We might want to have a method
>> OBMetaNode>>wantsSecondPane
>
> I would also like to be able to display different views, depending on
> the current OBDefinition. Right now this is a hack if I want to
> display something else than a TextMorph.
>
> Btw, how are the announcements and the multi-selection going?
>
> Cheers,
> Lukas
>
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





More information about the Squeak-dev mailing list