Question

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) ?

Was it helpful?

Solution

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

OTHER TIPS

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)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top