Package Annotation with MC1

Alexandre Bergel Alexandre.Bergel at cs.tcd.ie
Thu May 18 11:20:04 UTC 2006


Hello,

I dusted off a small extension to Monticello 1 that enables  
annotation of packages.
To annotate a package, just perform in a workspace:

(PackageInfo named: 'Monticello') annotation: (Dictionary new at:  
#author put: 'Wiresond team'; at: #website put: 'http:// 
www.wiresong.ca/Monticello'; yourself)

There is no graphical support, although easy to do.
I extended the Monticello meta model with a class  
MCPackageAnnotationDefinition.

Annotations are saved and are part of the source.st file. Packages  
that contains annotation can still be loaded in a non-annotation  
aware image. In the source.st, annotations are  saving using:

(PackageInfo canUnderstand: #annotation:)
	ifTrue:   [(PackageInfo named: 'Monticello')
			annotation: ((Dictionary new) add: (#author->'Wiresond team');  
yourself)]!

Perhaps someone might find it interesting...

Cheers,
Alexandre
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PackageAnnotation.11.cs
Type: application/octet-stream
Size: 7126 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060518/7bf352d4/PackageAnnotation.11.obj
-------------- next part --------------
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





More information about the Squeak-dev mailing list