Bug 500888

Summary: Manage imports through code formatter
Product: [Eclipse Project] Platform Reporter: Joris Kinable <j.kinable>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: j.kinable
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joris Kinable CLA 2016-09-05 22:01:31 EDT
The eclipse code formatter (org.eclipse.jdt.core.JavaCodeFormatter) can be run from the command line. It would be great if there's a way to organize the java imports from the command line as well. More specifically, these settings:
http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferences%2Fjava%2Fcodestyle%2Fref-preferences-organize-imports.htm

should also be available in the code formatting tool such that they are enforced when the code formatting is executed from the command line.