blob: d5f24012591b5ef385a656ce8cf746af21a41f4f [file]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 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">
<LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css">
<title>Associating editors with file types</title>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Associating editors with file types</H1>
<P>To associate editors with various file types in the Workbench:</P>
<ol>
<li>From the main menu, select <b>Window &gt; Preferences</b>.</li>
<li>In the Preferences window, select the <b>General &gt; Editors &gt;
File Associations</b> page .</li>
<li>Select the file type from the <b>File types</b> list, or click <b>Add</b>
to add a type that is not already on the list.</li>
<li>In the <b>Associated editors</b> list, select the editor that you want
to associate with that file type. To add an editor to the list:
<ol type="a">
<li>Click <b>Add</b>. The Editor Selection dialog box opens.</li>
<li>Select <b>Internal Editors</b> or <b>External Programs</b>, depending on
whether the editor that you want was built for the Workbench or runs outside the Workbench.</li>
<li>If you select <b>External Programs</b>, you can click the Browse button to
browse the file system.</li>
<li>Select the editor from the list and click <b>OK</b>.</li>
</ol>
</li>
<li>Click <b> OK</b> to finish associating the editor with the selected file type.</li>
</ol>
<p>When you associate an internal editor with a file type, that editor opens in
the editor area of the Workbench. For example, if you double-click a file in the
Navigator or an entry in the Bookmarks or Tasks view it opens in the editor area.
</p>
<p><img border="0" src="../images/win_only.png" alt="Windows only" >
Editors that support OLE document mode can also run in the editor area of the Workbench.
</p>
<p><b>Tip</b>: You can choose to override your default editor selections by
selecting <b>Open With</b> from the pop-up menu for any resource in one of the navigation views.
</p>
<p><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-6.htm">Editors</a><br>
<a href="../concepts/concepts-6a.htm">External editors</a>
</p>
<p><img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="tasks-46.htm">Opening files for editing</a><br>
<a href="tasks-52.htm">Editing files outside the Workbench</a><br>
<a href="tasks-18.htm">Linking the Navigator view to the active editor</a> </p>
</BODY>
</HTML>