blob: bc2dfde9a5f6b3684f410c776915400472fa516f [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.svg" alt="command link">
<b>Search</b></a> button <img src="../images/Image50_search.png" alt="Search icon" border="0" >.</li>
<li>Go to <b>File Search</b> tab.</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.svg" alt="command link">
<b>Window &gt; Show View &gt; Other... &gt; General &gt; Search</b></a>.
</p>
<h3 class="related">Related concepts</h3>
<a href="../concepts/csearchview.htm">Search view</a><br>
<a href="../concepts/cworkset.htm"><br>Working sets</a>
<h3 class="related">Related tasks</h3>
<a href="tasks-84.htm">Searching for text within a file</a>
<h3 class="related">Related reference</h3>
<a href="../reference/ref-26.htm">Search view</a><br>
<a href="../reference/ref-45.htm">File search</a>
</body>
</html>