eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
164 stars 130 forks source link

[23] Selection for module imports #2839

Closed stephan-herrmann closed 2 months ago

stephan-herrmann commented 2 months ago

fixes https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2838

stephan-herrmann commented 2 months ago

For posterity: this fix contains a tweak to ensure module names are treated as one name, regardless of any contained .. Otherwise selecting on java of java.base would pull up all modules starting with "java".

For references within module-info.java this same concept is already implemented in SelectionParser.createAssistModuleReference(int)