开发者

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

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How do I hide .class files from the开发者_Go百科 Open Resource dialog in Eclipse?

A direct question:

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


UPDATE:

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

My Eclipse is the STS (Spring Tool Suite)


Not possible, to my knowledge.

But that should rarely be a problem - you usually use this dialog if you know the name of the resource, and they should rarely coincide with class names.

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


That's a naive answer, but it does what you asked for. But probably not what you are after...

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

There's one catch with this approach. Typically you won't see the .class files there, because they are so called derived resources (generated by Eclipse in compilation process from your .java files). But you can make the Ctrl+Shift+R dialog show them too by checking the option "Show derived resources" in the configuration menu there:

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


By creating a working set selecting only your class folders. It's not a ready made solution, but easy to do with few projects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜