How to filter * .class in the Open Resource dialog (Ctrl + Shift + R)?

Possible duplicate:
How to hide .class files from Open Resource dialog in Eclipse?

Direct question:

How to filter *.class in the Open Resource dialog box (Ctrl + Shift + R) in Eclipse?


UPDATE:

Explain better: I need to HIDE all *.class files ... I program in groovy / grails. So, when I do Ctrl + Shift + R to open Order.groovy (for example), I also see Order.class ... and sometimes I open the wrong file.

My Eclipse is an STS ( Spring Toolbox )

+6
source share
3 answers

This is a naive answer, but it does what you asked for. But probably not what you need ...

What about typing *.class in the dialog box Ctrl + Shift + R?

There is one approach to this approach. Usually you do not see .class files there, because they are called derived resources (generated by Eclipse during compilation from your .java files). But you can also open the Ctrl + Shift + R dialog by setting the "Show derived resources" option in the configuration menu: Eclipse screenshot

+3
source
As far as I know, impossible.

But this is rarely a problem - you usually use this dialog if you know the name of the resource, and they should rarely match the names of the classes.

And if you want to open .java files, just use CTRL + SHIFT + T

+6
source

Having created the working set , we will select only your class folders. This is not a ready-made solution, but several projects are easy to do.

+1
source

Source: https://habr.com/ru/post/887871/


All Articles