Bug 526277

Summary: [9][quick fix] provide quick fix for adding JRE module for unresolved qualified type
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 4.7.1a   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stephan Herrmann CLA 2017-10-19 12:51:27 EDT
See bug 526270 comment 4:

A JRE type was not resolvable, because it was not contained in the default set of root modules. In this case, a quick fix could create the necessary add-modules (technically: limit-modules) attribute.

Need to figure out, if performance allows us to scan the entire JRE System Library, while the project's view of it is limited.

This quick fix needs to distinguish cases of unnamed vs. named modules, because default set of root modules differs for those, see bug 526054.