开发者

Is it possible to prevent Eclipse's indexer from presenting matches for `.class` files?

开发者 https://www.devze.com 2023-03-02 14:29 出处:网络
I\'m working on a new Eclipse workspace and my setup is very simple: My source folder is named src, my classes folder is named classes and I have in my classpath also the classes from the build on the

I'm working on a new Eclipse workspace and my setup is very simple:

My source folder is named src, my classes folder is named classes and I have in my classpath also the classes from the build on the server located under server_classes.

When I use the Find Type option in Eclipse it shows me the .java files under src and the .cl开发者_如何学Goass files under server_classes.

Is there anyway to instruct it ton exclude those files by default? (I want to keep them in the classpath - just not run into them by mistake when looking for a particular class)


When you open the Open Type window (ctrl-shift-t), at the top right there is a little black triangle. Click on that and select "Select Working Set..."

You can then create your own working set that only includes your source directory.


Open the Search Dialogue by pressing Ctrl+H, and select the "Java Search" Tab. The "Search In" Section should be self describing.

If you don't see a "Java Search" Tab press the Customize button.

0

精彩评论

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