blob: b5f1861e46b3d03e27757651d9735159c901c35d [file] [log] [blame]
<?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>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Associating editors with additional files types" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta content="content types, mapping file extensions, file extensions, mapping content types, file types, editors" name="DC.subject" />
<meta content="content types, mapping file extensions, file extensions, mapping content types, file types, editors" name="keywords" />
<meta content="XHTML" name="DC.Format" />
<meta content="tcontenttype" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<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 />
<div class="section"><p>You can associate certain editors with a file type by clicking
on <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
&gt; <span class="uicontrol">General</span> &gt; <span class="uicontrol">Editors</span> &gt; <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> &gt; <span class="uicontrol">General</span>
&gt; <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>