Bug 500888 - Manage imports through code formatter
Summary: Manage imports through code formatter
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-05 22:01 EDT by Joris Kinable CLA
Modified: 2016-09-05 22:02 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.