Bug 256461 - Use ParsingOptions.IMPLICIT_ROOT_CLASS for implicit access to the features of EObject in all OCL queries in GMF
Summary: Use ParsingOptions.IMPLICIT_ROOT_CLASS for implicit access to the features of...
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.3   Edit
Assignee: Artem Tikhomirov CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2008-11-25 11:40 EST by Alex Shatalin CLA
Modified: 2010-07-19 22:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Shatalin CLA 2008-11-25 11:40:05 EST
Looks like it make sence to expose EObject methods for any model elements in OCL queries using ParsingOptions.IMPLICIT_ROOT_CLASS.

See http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/msg15863.html.
Comment 1 Jevon CLA 2010-02-23 23:39:13 EST
Is there any progress in implementing this feature? Not being able to access eContainer() severely restricts the range of OCL constraints that can be used in some situations, since "parent" does not seem to be recognised as a valid OCL keyword.
Comment 2 Artem Tikhomirov CLA 2010-03-02 17:00:57 EST
Added both to GMF model-annotation validatiors and to Xpand expression evaluation.

Test for annotation validatiors: AnnotatedOclValidatorTest#testImplicitEObjectOperationsEnabled
Comment 3 Jevon CLA 2010-03-03 20:27:49 EST
That is great news! Thanks for pushing the change through :)
Comment 4 Eclipse Webmaster CLA 2010-07-16 23:38:17 EDT
[target cleanup] 2.3 M6 was the original target milestone for this
bug
Comment 5 Eclipse Webmaster CLA 2010-07-19 22:20:34 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug