|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: UML scope [message #642655 is a reply to message #642614] |
Thu, 02 December 2010 08:43 |
Meinte Boersma Messages: 434 Registered: July 2009 Location: Leiden, Netherlands |
Senior Member |
|
|
Oh, hang on: I couldn't get the import of the UML mm to work, so I cheated and created a substitute in the grammar itself, so that's why it works with me. Apologies for having caused confusion like that!
The reason it doesn't work with an external type is that "X : ext::A | B" means that X should be made a super type of ext::A which is sealed because it's an import.
The easiest solution would be Sebastian's suggestion in the thread you mention: cross-reference to EObject and use the scope provider (and validation) to limit the possibilities. This should work as both umlMM::Class and Variable are EObjects.
Xtext blogs: executable models...again? | workshop material | custom scoping with Xtend
|
|
|
Powered by
FUDForum. Page generated in 0.05131 seconds