blob: 5317b8b9d2a4d8da805c77432caf654493ce420e [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>
Conducting a Java search using pop-up menus
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Conducting a Java search using pop-up menus
</h1>
<p>
Open the context menu on any Java element visible in a view.
</p>
<ul>
<li>
Search, Outline, and Hierarchy views: The selected Java element in these views can be searched for declarations and references.
</li>
<li>
Package Explorer: Packages, Java compilation units, types and their members can be searched for declarations and references.
If a compilation unit or CLASS file contains
more than one type, a dialog prompts you to choose one.
</li>
</ul>
The search pop-up menu is also available in the Java editor. If the selection in the Java editor can be resolved to a Java element,
then you can search for declarations and references.
<p>
To conduct a search from a pop-up menu, follow these steps:
</p>
<ol>
<li>
Select a Java element (for example a Java compilation unit in the Package Explorer or a method in the Outline view) or some text in a Java editor.
</li>
<li>
From the selection's pop-up menu, navigate to the available Java searches. After you select a search to perform, the search progress is shown in a dialog. Note: in the
editor searches are available under the&nbsp;<strong><strong>Search</strong></strong> submenu.
</li>
<li>
You may stop the search process by clicking&nbsp;<strong><strong>Cancel</strong></strong> in the progress dialog.
</li>
</ol>
<p>
The type of the selected Java element defines which search pop-up menus are available. The Java editor does not constrain the list of available Java searches based on the
selection.
</p>
<img src="../images/ngrelc.png" alt="Related concepts" border="0" >
<p>
<a href="../concepts/concepts-8.htm">Java search</a>
</p>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" >
</p>
<p>
<a href="tasks-79.htm">Searching Java code</a>
</p>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-131.htm">Java search tab</a><br>
<a href="../reference/ref-menu-search.htm">Search menu</a>
</p>
</body>
</html>