开发者

Eclipse: search for the text in Java class comments etc

I want to search for the text that is written in annotations and comments in my java classes. e.g

/** 
 * Object interface mapping for h开发者_运维问答ibernate-handled table: mytable.
 * @author
 */

public interface myInterface{
}

I tried to search mytable in eclipse "java search" and "file search" but it not searching these texts and I can see these texts in annotaions etc.

I also use java search option match location and select all but it still did not search for mytable.

Please tell me how to do it in eclipse or RAD 8.0 (if possible).

After search how to replace that without opening each file?


If you do file search on all *.java files in the current workspace/the project with keyword mytable, then this file (myInterface.java) should be in the search result. That's how it's supposed to work.


it do,

eclipse searches that string under

Search->File search-> Comtaining text:mytable

file pattern *.java

it works for java file


For searching the text from any file you can use file search option it should work


for searching in annotations, there is an option "Limit To" on the "Java search" tab for searching only in annotation text. however I couldn't find a match location for comments, which I'd need just now...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜