[GraphViz][GOODIE] Unix hooks for GraphViz
David T. Lewis
lewis at mail.msen.com
Sun Mar 13 20:19:45 UTC 2005
Here is a patch that can be added to the GraphVizUnixHooks-dtl.cs change set to
allow the GraphViz examples to run on Unix/Linux as well as Windows. I think it
will also work on Mac OS X. It just adds a GraphViz>>openAsMorph that uses
OSProcess on Unix, or works as normal on Windows.
John, I also noticed that the example program
GraphViz class>>herarchyForClassesInCategoriesMatching: uses #overlappingPairsDo:,
which is not present in my image. Maybe there is a method missing from
the GraphViz package?
Dave
-------------- next part --------------
'From Squeak3.7 of ''4 September 2004'' [latest update: #5989] on 13 March 2005 at 4:19:14 pm'!
"Change Set: GraphVizUnixHooks-patch-dtl
Date: 13 March 2005
Author: David T. Lewis
Add GraphViz>>openAsMorph to allow the GraphViz examples to run on Unix/Linux as well as Windows. Probably also will work on Mac OS X."!
!GraphViz methodsFor: '*OSProcess' stamp: 'dtl 3/13/2005 16:15'!
openAsMorph
^ ((Smalltalk hasClassNamed: 'OSProcess')
and: [(Smalltalk at: #OSProcess) isUnix
or: [(Smalltalk at: #OSProcess) isUnixMac]])
ifTrue: [self showMorph]
ifFalse: [self openAsMorph]! !
More information about the Squeak-dev
mailing list
|