Eclipse provides an excellent
Java search facility for locating source, yet the scope of any search is limited to the projects loaded in the workspace; if a Java class is located in a plug-in?s JAR file, and the plug-in is not on the Java build path of an open project, then the class will not be found. When building Eclipse plug-ins, it is advantageous to include all Eclipse plug-ins in the search scope, even those not referenced by any projects under development.
One approach is to load all the plug-in projects from the Eclipse CVS server. Unfortunately, this chews up memory and clutters your workspace with hundreds of additional projects. Another approach is to create binary projects, one for each Eclipse plugin. Although binary projects take up less memory than source projects, this too will clutter your workspace with hundreds of additional projects.
Our approach, useful for searching all of Eclipse, using less memory, and not cluttering your workspace is to create one reference project containing all the Eclipse plugin jar files to be searched. This project contains no source of its own, but contains all the Eclipse plug-ins on its classpath so that a search can include the entire source for Eclipse. To simplify the creation of a reference project, we created a "Refence Project Wizard" that is available as part of the Quality Eclipse Tools...
Reference Project Wizard
http://www.qualityeclipse.com/?page=tools/reference/content.html