Eclipse tip: add Import Group "*" to sort imports of unconfigured classes last
When sorting Java import statements Eclipse puts the imports from packages not specifically configured between the others.To move those statements after the ones you did configure, open Window | Preferences | Java - Code Style - Organize Imports , create a New Import Group called * and make sure it's the last entry.
This fixes situations like this where the import from the package de.l3s.boilerpipe.document
is placed between imports of java.io.
and org.xml.sax
:
import java.io.StringReader;
import de.l3s.boilerpipe.document.TextDocument;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
After adding the * import group and sorting the import from the package de.l3s.boilerpipe.document
is placed at the end:
import java.io.StringReader;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import de.l3s.boilerpipe.document.TextDocument;