ドキュメント・プロバイダー

ID: org.eclipse.ui.documentProviders

このリリース以降: 1.0

説明: この拡張ポイントを使用して、ファイル・タイプとドキュメント・プロバイダー、 またはエディター入力のタイプとエディターで使用できるドキュメント・プロバイダーの間のマッピングを定義します。 ドキュメント・プロバイダーには、インターフェース org.eclipse.ui.texteditor.IDocumentProvider をインプリメントする必要があります。 エディター入力は、org.eclipse.ui.IEditorInput のインスタンスでなければなりません。

構成マークアップ:

   <!ELEMENT extension (provider*)>

   <!ATTLIST extension
     point CDATA #REQUIRED
     id    CDATA #IMPLIED
     name  CDATA #IMPLIED
   >

   <!ELEMENT provider EMPTY>

   <!ATTLIST provider
     extensions CDATA #IMPLIED
     inputTypes CDATA #IMPLIED
     class      CDATA #REQUIRED
     id         CDATA #REQUIRED
   >

例:
<extension point="org.eclipse.ui.documentProviders"> 
    <provider 
        extensions=".jav"
        class="org.eclipse.ui.examples.javaeditor.JavaDocumentProvider" 
        id="org.eclipse.ui.examples.javaeditor.JavaDocumentProvider"> 
    </provider> 
</extension>

この例は、org.eclipse.ui.examples.javaeditor.JavaDocumentProvider を、拡張子 ".jav" を持つファイルのデフォルト・プロバイダーとして登録します。

<extension point="org.eclipse.ui.documentProviders"> 
    <provider 
        inputTypes="org.eclipse.ui.IStorageEditorInput"
        class="org.eclipse.ui.editors.text.FileDocumentProvider" 
        id="org.eclipse.ui.editors.text.FileDocumentProvider"> 
    </provider> 
</extension>

この例は、org.eclipse.ui.editors.text.FileDocumentProvider を、org.eclipse.ui.IStorageEditorInput のインスタンスであるすべてのエディター入力のプロバイダーとして登録します。

API 情報: ファイル拡張子について登録したドキュメント・プロバイダーは、 入力タイプについて登録したドキュメント・プロバイダーよりも優先されます。 ドキュメント・プロバイダーには、インターフェース org.eclipse.ui.texteditor.IDocumentProvider をインプリメントする必要があります。 エディター入力は、org.eclipse.ui.IEditorInput のインスタンスでなければなりません。

Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved.