Searching for a Program Element in the Workspace

To find a program element in the workspace, use the Go To tool.  The Go To tool finds and selects a program element within the current browser and page.  It helps you select a particular program element in a long list of elements.  

If you have a browser open on, for example, a particular project, running a Go To search for a package that is not in the project will not find the package.   Therefore, if you want to search the entire workspace for the program element, run the Go To search from the Projects page of the Workbench.

  1. Start the Go To tool by selecting Go To from the Selected menu.  In the submenu, select the program element type (for example, Package, Project, or Method) you want to go to.  Only those program element types that the current page can display are available.
  2. In the Go To dialog, all the available program elements in the page are listed.  Select the one you want to go to from the list, or narrow down the list by typing in part of the name.  Use the following wildcard characters to help with the search:
    Wildcard Character Represents
    * any string of characters
    # any single character
  3. Click OK to go to the program element.  Remember, you will remain in the same browser and page that you were in before, but the searched-for program element will be selected.  If you want to open a browser for the element, double-click on it.

If you do not find the program element in the workspace, find it by using the Go To tool in the Repository Explorer, and then add it to the workspace.

ngrelc.gif (533 bytes)
Workspace
Repository

ngrelt.gif (466 bytes)
Searching for a Program Element in the Repository
Searching for Declarations of and References to a Program Element
Searching for Text in a Source Pane
Browsing the Workspace