In the "package explorer view" of eclipse, some of my "file system folders" (e.g. src/main
) are shown (my source folder is set to src/main/java
).
Showing the folder twice is redundant. How can I prevent this behaviour by default?
In the "package explorer view" of eclipse, some of my "file system folders" (e.g. src/main
) are shown (my source folder is set to src/main/java
).
Showing the folder twice is redundant. How can I prevent this behaviour by default?
Have you tried this?
1) Right click on the project, choose Properties.
2) Java Build Path
3) Source tab, select the folder on your build path (src/main) then select Excluded node
4) Click Edit... button and add the pattern to exclude (src/main) and include (src/main/java) from the build path. You can fine-tune it with wildcards.
I had the same problem with a C project.
On the top-right angle of the project explorer, you can find a triangle icon. Click on that, you will find one of these two following menu items (depending on the version):
Click the one you find, and you will get a checkboxes list with "Non Java-Elements" option. Toggle it and it works.
In case of C/C++ project, the entry is called "Non C-Objects".
Tried on Eclipse Oxygen and MCUxpresso.
It's simple.
click the project of your choice.
Hit the 'edit' bottom.
scroll down to the 'delete'.