| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html lang="en-us" xml:lang="en-us"> |
| <head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <title>Associating editors with additional files types</title> |
| </head> |
| <body id="tcontenttype"><a name="tcontenttype"><!-- --></a> |
| <h1 class="topictitle1">Associating editors with additional files types</h1> |
| <div><p></p> |
| <div class="section"><p>You can associate certain editors with a file type by clicking |
| on <span class="menucascade"><span class="uicontrol">Window</span> > <span class="uicontrol">Preferences</span> > <span class="uicontrol">General</span> > <span class="uicontrol">Editors</span> > <span class="uicontrol">File |
| Association</span></span> and setting up the associations in the |
| File Associations Window.</p> |
| <p>Some Eclipse-based editors, however, will |
| only recognize a file based on the contents of the file. Consequently, if |
| you want to associate an additional file type with some editors, you may have |
| to first map the content type with its file extension. To map a content type |
| with a file extension, complete the following steps: </p> |
| <ol><li>Click <span class="menucascade"><span class="uicontrol">Window</span> > <span class="uicontrol">General</span> > <span class="uicontrol">Content Types</span></span>. The Content Type window |
| appears. </li> |
| <li>Select a content type in the Content Type window, and then select <strong>Add</strong> . |
| The Define a New File Type window appears.</li> |
| <li>Type the name of the file type, and then click <strong>OK</strong>.</li> |
| </ol> |
| </div> |
| </div> |
| </body> |
| </html> |