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
- Outline view
- Search view
- Type view
- Member view
- Editor area
Search from Outline view.
-
Make sure the VJET file Test.js is opened in your editor area, and you can see elements displayed in Outline view.

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

Searching from an editor
-
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");
}
-
From the context menu, select References > Workspace.

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.

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.

Performing a file search
-
In the VJET perspective, click the Search button in the workbench toolbar or
select Search > File from the menu bar.
-
If it is not already selected, select the File Search tab.
-
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.

-
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.

The Show Previous Searches button will display a dialog
with the list of all previous searches from the current session.
Selecting a previous search from this dialog will let you view that search.