Community
Participate
Working Groups
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.
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