Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show only (src) files not (target) files by Eclipse shortcut (cntrl + alt + R)?

By using Eclipse shortcut (CTRL+Shift+R)
Will show both (src) files and also (target) files.
Like that
enter image description here

The problem is that
Some times by mistake
I select the target file then i update my changes
After build i will NOT see the new changes !!
Thats because i update the wrong files (target)

So any idea
How to show only (src) files not (target) files by Eclipse shortcut (CTRL+Shift+R) ?

like image 342
ahmednabil88 Avatar asked Mar 23 '23 16:03

ahmednabil88


2 Answers

The quick and (dirty way) :

Right click on a target folder(s)
Go to folder(s) properties,
Mark folder as Derived like that.
enter image description here Derived entities are excluded from searching by default like that. enter image description here

The (safe way) :

By create a working set
enter image description here That include only those entities you want searched and search only within that working set.
In our case will include ALL without target folder(s).

Note : This answer is related to
Exclude folders from Eclipse search

like image 165
ahmednabil88 Avatar answered Apr 24 '23 22:04

ahmednabil88


In the project-settings on java build-path you'll find on source a checkbox like this:

enter image description here

Disable it, for not getting files which are in the target folder to your view. So you will not find it by Eclipse shortcut (CTRL+Shift+R)

like image 35
JavaDM Avatar answered Apr 24 '23 22:04

JavaDM