Eclipse IDE search a function with given name

13,817

Solution 1

Use "Java Search" in the search menu or move the caret on the function name in the source and press Ctrl+Shift+G (-> search for reference in Workspace).

[EDIT] If you don't know in which class the function is, then use the text search (which is called "File search"). Enter the name in the search field and then limit the search to "*.java" files.

Solution 2

If you don't know where the method is located, use text search with a root of your whole project, working set or even the whole workspace if you've really got no idea where it might be; SearchFile… brings up a dialog which lets you enter exactly what you are looking for. You'll have to sort through all the things it finds (using the Search window) to identify the real match from among the false positives, but that's better than nothing.

Share:
13,817

Related videos on Youtube

akp
Author by

akp

Updated on June 04, 2022

Comments

  • akp
    akp over 1 year

    How to search a partifular function in a particular project in Eclipse e.g. if I want to search a function with name xyz how do I do it?

  • akp
    akp about 13 years
    i dont know if the function is present.So i cant select the function and then press those keys.I want a way by which i can type the functin name in text box
  • Donal Fellows
    Donal Fellows about 13 years
    @akp: You can do just that, but if you do, you need to type the full name in (class name and all).