0

I have imported a few external library imports in a java file. After saving the file eclipse auto removes these imports.

Quick googling showed me results about organizing imports. But these are disabled in eclipse work-space.

How should I prevent this behavior?

YetAnotherBot
  • 1,937
  • 2
  • 25
  • 32

2 Answers2

1

It was in fact inside Save Actions.

Although the Perform the selected actions on save was unchecked, these settings were enabled inside Configure Project Specific Settings and the corresponding project.

YetAnotherBot
  • 1,937
  • 2
  • 25
  • 32
0

If you convert your project into a Maven project, you can add your imports into the pom.xml file.
Thus all your external exports would now be considered as internal ones.
If you don't want to convert your project to Maven, you could Add External libraries to Eclispe. See here