blob: 5e1e0a930138a703dc672a56d9dc7066b463779e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2014. 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">
<link rel="STYLESHEET" href="../book.css" charset="ISO-8859-1" type="text/css">
<title>Searching for files</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
</head>
<body>
<h1>Searching for files</h1>
<p>The <b>Go To &gt; Resource</b> action in the <b>Navigate</b> menu
allows you to quickly find a resource in the Workbench by searching resource <i>names</i>.
</p>
<p>You can also do more complex searches for files in the Workbench. For example,
to find all files that end with .xml:
</p>
<ol>
<li>On the main toolbar, click the
<a class="command-link" href='javascript:executeCommand("org.eclipse.search.ui.openSearchDialog")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="command link">
<b>Search</b></a> button <img src="../images/Image50_search.png" alt="Search icon" border="0" >.</li>
<li>Type <code>*.xml</code> into the <b>File name patterns</b> field and leave
the <b>Containing text</b> field empty. <br>
(You can use the pull-down list to select <code>*.xml</code> if it had been previously entered.)</li>
<li>Finish entering your search options, for example to scope the search to
specified working sets, and click <b>Search</b>.</li>
<li>The Search view displays the results of your search. Right-click on any
item in the Search view to open a pop-up menu that allows you to remove items
from the list, copy search results to the clipboard, or rerun the search.
To open one of the listed files, double-click it or select <b>Open</b>
from its pop-up menu.</li>
</ol>
<p>
If you close the Search view, you can return to it later by selecting
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.search.ui.views.SearchView)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="command link">
<b>Window &gt; Show View &gt; Other... &gt; General &gt; Search</b></a>.
</p>
<p><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/csearchview.htm">Search view</a>
<a href="../concepts/cworkset.htm"><br>Working sets</a>
</p>
<p><img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="tasks-84.htm">Searching for text within a file</a>
</p>
<p><img border="0" src="../images/ngrelr.png" alt="Related reference" ><br>
<a href="../reference/ref-26.htm">Search view</a><br>
<a href="../reference/ref-45.htm">File search</a><br>
</p>
</body>
</html>