0

In eclipse IDE, Quick assistant aids to import package package dependency automatically. However, sometimes it takes to much time to click all the errors to import the dependent packages.

How can I do that manually? I mean, what configuration file Quick Assistant modify to add the dependency?

enter image description here

3 Answers 3

1

You can change your save actions to organize imports.

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferences%2Fjava%2Feditor%2Fref-preferences-save-actions.htm

Sign up to request clarification or add additional context in comments.

Comments

1

The action you want is "Organize Imports" which is also accessible using the keystroke: Ctrl+Shift+o

Comments

0

I found that Import-Package in MANIFEST.MF is the one eclipse automatically adds the dependency files.

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.