| <!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=utf-8"> |
| <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>"*" for any string and "?" for any character</li> |
| <li>terminating "<" or " " (space) to prevent the automatic prefix matching, e.g. "M*file<" to match |
| <code>Makefile</code> and <code>MockFile</code> but not <code>MakeTheFiles</code></li> |
| </ul><strong>Camel case</strong>:<br> |
| <ul> |
| <li>"CS" for file names containing "C" and "S" as upper-case letters in camel-case notation, e.g. |
| <code>CreateStuff.java</code></li> |
| <li>"CreSNo" for file names containing "Cre", "S", and "No" as parts in camel-case notation, e.g. |
| <code>CreateStuffNow.jsp</code></li> |
| <li>terminating "<" or " " (space) to fix the number of camel-case parts, e.g. "CreS<" matches |
| "CreateStuff.java", but not "CreateStuffNow.jsp" nor "Createstuff.txt".</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. "org.eclipse.ui/plugin.xml".<br> |
| Or a bit more complex: "*/ui</pack*.html" matches e.g. files called "package.html" in a folder named "ui" (but |
| not in folders like "uitools" or "*/ui/internal").</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> |
| <h3 class="related">Related tasks</h3><a href="../tasks/tasks-46.htm">Opening Resources</a> |
| <h3 class="related">Related reference</h3><a href="../concepts/cworkset.htm">Working sets</a><br> |
| <a href="../reference/ref-58.htm">Navigate actions</a> |
| </body> |
| </html> |