| Summary: | [documentation] flaw regarding OppositeEndFinder customization | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] OCL | Reporter: | Axel Uhl <eclipse> | ||||||||
| Component: | Core | Assignee: | OCL Inbox <mdt-ocl-inbox> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | ed | ||||||||
| Version: | 3.1.0 | ||||||||||
| Target Milestone: | RC3 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 197482 [details]
Extra tutorial validation
Attached contains extra validation of tutorial text that I couldn't commit at RC3/4 without troubling PMCs for approval.
Please add your source code as a further 'test' so that we are alerted to any API evolution affecting IA documentation.
Created attachment 197865 [details]
Cumulative patch, including further test cases
See GIT branch bugs/348502. As suggested, I added a test case that asserts the way in which the documentation describes how the OppositeEndFinder can be customized.
+1. A comment on the 'test' indicating where the example usage is in the documentation would be good. Done. Merged into master. Closing all bugs resolved in Indigo. |
Created attachment 197479 [details] Fixes the corresponding textile The customization documentation contains a hint to use OCL.newInstance(OppositeEndFinder) but that constructor doesn't exist anymore. Instead, the specialized EcoreEnvironmentFactoryWithHiddenOpposites needs to be used: Old: OCL ocl = OCL.newInstance(new MyOppositeEndFinder()); New: OCL ocl = OCL.newInstance(new EcoreEnvironmentFactoryWithHiddenOpposites( EPackage.Registry.INSTANCE, new MyOppositeEndFinder()); Patch attached.