A new version of TraitEditor was added to project SystemEditor: http://www.squeaksource.com/SystemEditor/TraitEditor-mtf.6.mcz
==================== Summary ====================
Name: TraitEditor-mtf.6 Author: mtf Time: 11 July 2008, 1:07:46 pm UUID: 10f90876-03d8-4df6-a2d7-27787d779af6 Ancestors: TraitEditor-mtf.5
instance creation now works
=============== Diff against TraitEditor-mtf.5 ===============
Item was changed: ----- Method: TraitEditor class>>named:uses:category:env: (in category 'instance creation') ----- + named: aName uses: aTraitCompositionOrCollection category: aCategory env: anEnvironment - named: aSymbol uses: aTraitCompositionOrCollection category: aString env: anEnvironment + ^ (self named: aName for: anEnvironment) + traitComposition: aTraitCompositionOrCollection; + category: aCategory; + yourself! - | editor | - editor := anEnvironment at: aSymbol ifAbsent: [self on: nil for: anEnvironment]. - editor traitComposition: aTraitCompositionOrCollection. - editor category: aString. - editor edRegisterEditor. - ^ editor!
Item was removed: - ----- Method: TraitEditor class>>named:for: (in category 'instance creation') ----- - named: aSymbol for: aSystemEditor - | subject inst | - subject := aSystemEditor edClassAt: aSymbol ifAbsent: [nil]. - inst := self on: subject for: aSystemEditor. - subject ifNil: [inst setName: aSymbol]. - inst edRegisterEditor. - ^ inst!
Item was removed: - ----- Method: TraitEditor>>edRegisterEditor (in category 'initialize-release') ----- - edRegisterEditor - ^ self shouldBeImplemented!
packages@lists.squeakfoundation.org