开发者

how to know whether a particular line of code is present in the compilation unit?

开发者 https://www.devze.com 2023-01-12 16:07 出处:网络
I want to search for a particular line of code in the compilation unit. So need some i开发者_如何学Pythonnput on how to go about the same.

I want to search for a particular line of code in the compilation unit. So need some i开发者_如何学Pythonnput on how to go about the same. thanks


Do a file search in the whole project (or workspace) and use the file filter *.java. This will scan all java source files for the given phrase.


You can search for the text or you can use the References or Declarations search from Eclipse: select the line of code, right click and then choose References or Declarations.

Very useful to find where you call a certain method or where you used some class.

0

精彩评论

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