blob: 0cf890cc52899b07b6c111ef709ce51a04a29c71 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2010. 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>
Open Resource
</title>
</head>
<body>
<h1>
Open Resource
</h1>
<p>
This dialog allows you to browse the workbench for a file to open in an editor
</p>
<ul>
<li>
<strong>Select an item to open</strong>: In this field, type the first few
characters of the name of the file you want to select.
<p>The following pattern kinds are supported:</p>
<br>
<strong>Wildcards</strong>:<br>
<ul>
<li>
&quot;*&quot; for any string and &quot;?&quot; for any character
</li>
<li>
terminating &quot;&lt;&quot; or &quot; &quot; (space)
to prevent the automatic prefix matching, e.g. &quot;M*file&lt;&quot;
to match <code>Makefile</code> and <code>MockFile</code> but not <code>MakeTheFiles</code>
</li>
</ul>
<strong>Camel case</strong>:<br>
<ul>
<li>
&quot;CS&quot; for file names containing &quot;C&quot; and &quot;S&quot;
as upper-case letters in camel-case notation, e.g. <code>CreateStuff.java</code>
</li>
<li>
&quot;CreSNo&quot; for file names containing &quot;Cre&quot;, &quot;S&quot;,
and &quot;No&quot; as parts in camel-case notation, e.g.
<code>CreateStuffNow.jsp</code>
</li>
<li>
terminating &quot;&lt;&quot; or &quot; &quot; (space) to fix the number of camel-case parts,
e.g. &quot;CreS&lt;&quot;
matches &quot;CreateStuff.java&quot;, but not
&quot;CreateStuffNow.jsp&quot; nor &quot;Createstuff.txt&quot;.
</li>
</ul>
<strong>Folder prefixes</strong>:<br>
<p>
Both pattern kinds also support <strong>folder prefixes</strong>.
If the pattern contains a /, the part before the last / is used to match a path in the workspace, e.g.
&quot;org.eclipse.ui/plugin.xml&quot;.<br>
Or a bit more complex: &quot;*/ui&lt;/pack*.html&quot; matches e.g. files called &quot;package.html&quot;
in a folder named &quot;ui&quot; (but not in folders like &quot;uitools&quot; or &quot;*/ui/internal&quot;).
</p>
<br>
<strong>Relative paths</strong>:<br>
<p>
For example, "./Mak" matches all files starting with "Mak" in the folder of the active editor or selection, while
"../Mak" matches such files in the parent folder.
</p>
<br>
</li>
<li>
<strong>Matching items</strong>: This list displays matches for the pattern you type in the <strong>Select an item to open</strong> field.
<ul>
<li>Recently opened files show up in a history section at the top of the list.</li>
<li>If the pattern matches many files with the same name, the files that are closer to
the currently edited or selected resource are shown on top of the matching items list.</li>
</ul>
</li>
</ul>
<p>
The <b>Open</b> button opens the file with the default editor for the chosen file.
A different editor can be selected in the context menu on a file or in the <b>Open With</b> drop-down button.
</p>
<p>
The <b>Show In</b> drop-down button can be used to show the chosen file in a view.
</p>
<p>
The behavior of the <strong>Open Resource</strong> dialog can be further customized using the dialog menu:
</p>
<table border="1" cellspacing="0" cellpadding="5" summary="Open resource options">
<caption>
Open Resource Options
</caption>
<thead>
<tr>
<th>
<p>
Option
</p>
</th>
<th>
<p>
Description
</p>
</th>
<th>
<p>
Default
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top">
Show Status Line
</td>
<td valign="top">
When selected, the <strong>Open Resource</strong> dialog shows an additional bar at the bottom of the dialog which displays the
full path of the selected file.
</td>
<td valign="top">
Show status line
</td>
</tr>
<tr>
<td valign="top">
Show Derived Resources
</td>
<td valign="top">
When selected, the <strong>Open Resource</strong> dialog also shows derived resources.
</td>
<td valign="top">
Do not show derived resources
</td>
</tr>
<tr>
<td valign="top">
Working Set actions
</td>
<td valign="top">
The search scope can be restricted by selecting one or more working sets
or the global Window Working Set.
</td>
<td valign="top">
Show all files in the workspace.
</td>
</tr>
</tbody>
</table>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" >
</p>
<p>
<a href="../tasks/tasks-46.htm">Opening Resources</a><br>
</p>
<p>
<img src="../images/ngrelr.png" alt="Related reference">
</p>
<p>
<a href="../concepts/cworkset.htm">Working sets</a><br>
<a href="../reference/ref-58.htm">Navigate actions</a>
</p>
</body>
</html>