Searching the workbench

In this section, you will learn how to search VJET elements in workbench.

Searching from a VJET view

VJET searches can be performed from specific views, including

Search from Outline view.

  1. Make sure the VJET file Test.js is opened in your editor area, and you can see elements displayed in Outline view.
  2. Opening Test.js file

  3. In the Outline view, select the setOpen(boolean) method, and from its context menu, select References > Workspace.

    Search form outline view

Searching from an editor

  1. From the Package Explorer view, open MyTest.js type and add the following code in protos section:
    //>public void main(String... args) 
    main : function(){
        this.vj$.Test.printAccount();
        vjo.sysout.println("Hello World");
    } 
        	
  2. From the context menu, select References > Workspace.

    Search context menu in editor

Search from member view and type view

In the VJET JS browsing perspective, select the setOpen(boolean) method in Member view, and from its context menu, select References > Workspace.

Search from member view

Continuing a search from the search view

The Search Results view shows the results for the Test search. You can continue searching the selected element's references and declarations by select from context menu.

Search context menu in Search results view

Performing a file search

  1. In the VJET perspective, click the Search button in the workbench toolbar or select Search > File from the menu bar.
  2. If it is not already selected, select the File Search tab.
  3. In the Containing text field, type Test. Make sure that the File name patterns field is set to *.js. The Scope should be set to Workspace. Then click Search.

    File search tab

  4. To find all files of a given file name pattern, leave the Containing Text field empty.

Viewing previous search results

In the Search Results view, click the arrow next to the Show Previous Searches toolbar button to see a menu containing the list of the most recent searches. You can choose items from this menu to view previous searches.  The list can be cleared by choosing Clear History.

Previous search results menu

The Show Previous Searches button will display a dialog with the list of all previous searches from the current session.

Previous search results dialog

Selecting a previous search from this dialog will let you view that search.