| Summary: | [Documentation] Issue with Scoping code snippet | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Joel Denton <joeldenton> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow |
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Pushed to MASTER. Thanks for reporting. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
The following snippet in the Scoping section of the Xtext Documentation attempts to iterate visibleContainer.getResourceDescription(). I beleive this should be visibleContainer.getResourceDescriptions(). "s" has been omitted. @Inject IContainer.Manager manager; public void listVisibleResources( Resource myResource, IResourceDescriptions index) { IResourceDescription descr = index.getResourceDescription(myResource.getURI()); for(IContainer visibleContainer: manager.getVisibleContainers(descr, index)) { for(IResourceDescription visibleResourceDesc: visibleContainer.getResourceDescription()) { System.out.println(visibleResourceDesc.getURI()); } } }