Does Eclipse have a feature that lets you search a project to find all calls to deprecated methods?
+6
A:
You can set the compiler to generate errors or warnings (your choice) for any usage of deprecated API.
Preferences, Java, Compiler, Errors/Warnings, Deprecated and restricted API section.
Then, each use of a deprecated method or API will show up as an error/warning in the Problems view.
matt b
2008-10-24 13:51:47
Thanks. Is it possible to page or scroll the list of errors or warnings? I have more than it can show me at once and can't seem to find a way to show them all.
John Topley
2008-10-24 14:20:45
In the Problems view, click on the View Menu (the triangle icon) ... you can change the number of visible items under Preferences. You can also change which Types of problems are shown under Configure Contents.
matt b
2008-10-24 14:25:57
Excellent...thanks Matt!
John Topley
2008-10-24 14:40:00
+1
A:
You can always use the grep facilities under 'Search -> File'. Eclipse can do a recursive search for @deprecated
after you check on the 'consider derived resources' option box.
Alan
2008-10-25 22:20:45