title: Eclipse plugins - separate Editor and icons assignment
body: <p>I have defined standard TextEditor to open <em>.git</em> files. (<a href="https://github.com/Nodeclipse/org.nodeclipse.gitaddon" rel="nofollow">code at GitHub</a>)</p>
  
  <pre><code>   &lt;!-- git --&gt;
     &lt;extension
           point="org.eclipse.ui.editors"&gt;
        &lt;editor
              class="org.eclipse.ui.editors.text.TextEditor"
              contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
              default="true"
              extensions="gitignore,gitmodules,gitattributes"
              icon="icons/git.ico"
              id="org.eclipse.ui.DefaultTextEditor"
              name="Text Editor"&gt;
        &lt;/editor&gt;
     &lt;/extension&gt;
  </code></pre>
  
  <p>However this code changes icon for TextEditor, whatever file I open.</p>
  
  <p>Is the only way the custom Text Editor? <strong>Are there particular extention points only for file types?</strong></p>
  
  <p>UPDATE: Defining own Editor as below</p>
  
  <pre><code>import org.eclipse.ui.editors.text.TextEditor;
  
  public class GitFilesEditor extends TextEditor{
  </code></pre>
  
  <p>make matter even more complicated (I don't like idea to specify all those items)</p>
  
  <pre><code>Multiple markers at this line
  - The type org.eclipse.jface.text.source.Annotation cannot be resolved. It is indirectly referenced from required .class files
  - The type org.eclipse.jface.text.revisions.RevisionInformation cannot be resolved. It is indirectly referenced from     required .class files
  - The type org.eclipse.jface.text.source.ISourceViewer cannot be resolved. It is indirectly referenced from required .class files
  - The type org.eclipse.jface.text.IRegion cannot be resolved. It is indirectly referenced from required .class files
  - The type org.eclipse.jface.text.source.IVerticalRuler cannot be resolved. It is indirectly referenced from required .class files  
  </code></pre>