Invalid Space ID: hyvebuild-beta
 

Version 12, last updated by Daniel Ratiu at August 21, 2011 12:20 UTC

Overview

An Eclipse plugin to perform advanced search for the already written Java methods (both in sources as well as in the JARs of the projects in the workspace).

Install


To install the plugin in eclipse please follow the following steps:
  • Search plugin -- http://www4.in.tum.de/~ratiu/software/eclipse_update/
    • Goto 'Eclipse Preferences -> JDT Weaving' and make sure that it is enabled
Advanced Methods Search Logo

Usage Hints

    • To open the 'Methods search' view goto: 'Window -> Show view -> Java -> Methods search'
    • Initialization:before searches can be performed, you first have to initialize the cache (once initialized, it will be made persistent on disk)
      • To gather the information from the Java sources, just perform a Project -> Clean and then a re-build
      • To gather the information from the JARs, goto the Jars Search Config select the packages from the table that you are interested in, and press 'Accept'. You can gather the information from the all public methods, or only from static methods, you can choose to gather the parameter names (when possible)
      • To clear the gathered information goto 'Jars Search Config' tab and press Clear Cache



Configuring the plugin

       



    • Searching use-cases:
      • Search for method names: just enter the name of the method (or part thereof) in the field 'Name'
      • Search for methods that return X: just enter the X in the 'Return' field
      • Search for methods that take parameter X: just enter the X in the 'Parameter'
      • Search for methods that take X as parameters and return Y: just enter the X in the 'Parameter' field and Y in the 'Return' field



Searching panel

       



  • Filtering: if following the search you obtained too many hits, you can filter only the results that are interesting for you (e.g. the methods that belong to certain classes, or to certain packages)
  • Opening found methods: if you double click on a method in the results table, it will be opened in the editor.