Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (31 loc) · 1.83 KB

EclipseIdeTips.md

File metadata and controls

35 lines (31 loc) · 1.83 KB

FAQ - Frequently Asked Questions Regarding Eclipse IDE

1. Java Source Code Not Visible

Problem:

When debugging the Java source code is not visible.

Solution:

This problem mostly occurs in case of external libraries that do not belong to the Java standard. The solution is to add the source files manually. But for that you have to have access to that files.

How to:

There are basically two possibilities to attach source files (e. g. you have to download the .zip file from Github etc.):

  • In the Package Explorer go to the Maven Dependencies and search for the JAR-File you want to attach the source files to, then rightclick it and select Properties. In the menu choose Java Source Attachment. Click on External location and select the corresponding .zip file or .jar file.
  • When you try to debug code that has no source file attached you will get an information page stating that the source file is missing. On that page there is a button to attach them. A click on that button will again open the Properties window. Proceed as explained above!

2. Eclipse Freezes

Problem:

Eclipse freezes (e.g. after including the approuter source files [Node modules])

Solution:

In order to prevent that behaviour you have to exclude the corresponding Node modules from the validation. In other words you have to specify a resource filter.

How to:

See exercise 22 for further details.

3. Auto-Completion of Static Imports

Problem:

Auto-Completion of static imports (e.g. Hamcrest matchers) does not work.

Solution:

You have to add a new Type Favorite in Eclipse.

How to:

See exercise 4 for further details.


© 2018 SAP SE