| Summary: | [xtend][ui][organize imports] required imports removed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Knut Wannheden <knut.wannheden> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | sebastian.zarnekow | ||||
| Version: | 2.1.0 | Flags: | sebastian.zarnekow:
juno+
|
||||
| Target Milestone: | M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 206654 [details]
proposed patch
Patch looks good. Please apply on master and maintenance branch. Pushed proposed patch to master and 2.1.x_Maintenance. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
In the following Xtend2 example: import org.eclipse.xtext.resource.IResourceServiceProvider import org.eclipse.emf.ecore.EPackage class Test { def foo() { val x = IResourceServiceProvider$Registry::INSTANCE val y = EPackage$Registry::INSTANCE } } running organize imports will remove the import for EPackage. It seems to be related to the fact that both imported types have a nested Registry interface. Somehow organize imports seems to get confused because of that. Also note that there is no warning on either of the imports in this source, which of course is correct.