Attributes and Scope

Is there an easy way to have a NodeAttribute affect the Scope of the attributed node?  Would making the attribute implement ScopeProvider on the NodeAttribute work?

Basically, what I'm trying to do involves putting an attribute on a Classifier, and other NodeAttributes on members of the classifier.  The member's attributes have values that depend on the classifier's attribute. 

I can write an appropriate scope for this in the Constraints, but if I could just use ScopeProviders and inherited scopes, that'd seem to be much cleaner to me.

1 comment
Comment actions Permalink

The standard mechanism for inherited scopes should work for attributes - just make your Classifier's node attribute a ScopeProvider and it will be able to add elements to the scope.




Please sign in to leave a comment.