views:

374

answers:

2

Hi there,

is there a way to search in javadoc comments only (via eclipse)? I just want to find text within a javadoc comment...

Greets, Tobias

A: 

If the javadoc is in source files that are in your workspace then you can use 'File Search'.

dorzey
yes, but then i´m searching the whole code, not just the javadoc...
Tobiask
+3  A: 

The only way I can think of is to use Eclipse File Search dialog for all .java files and use this regular expression as input:

"(?s:/\*\*([^\*]|\*[^/])*?###INPUT###.*?\*/)"

and replace the ###INPUT### with what you are searching for.

See this other question about this regex.

bruno conde