
Making the attribute 'self' preferred
Matt,
Quote:
> I would like the attribute 'self' to appear in the preferred list - so
> 'self' will appear in the 'Connect' menu of these parts in the composition
> editor.
In VisualAge 3.0 specialize preferredConnectionFeatures
MyClass>>preferredConnectionFeatures
^#( self )
In 4.0 or higher specialize abtSelfReferenceAttributeFeatureBuilder
MyClass>>abtSelfReferenceAttributeBuilder
^super abtSelfReferenceAttributeFeatureBuilder
attributeSettingNamed: #isPreferred put: true.
Best regards,
Joe Winchester