Configuration de document

org.eclipse.core.filebuffers.documentSetup

3.0

Ce point d'extension sert à personnaliser le processus d'initialisation d'un document pour un gestionnaire de mémoire tampon du fichier texte par défaut par celui du plug-in. Il permet d'indiquer le participant de configuration de document devant être impliqué dans le processus d'initialisation de la mémoire tampon d'un fichier texte pour un certain type de contenu, une extension ou un nom de fichier.

<!ELEMENT extension (participant)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT participant EMPTY>

<!ATTLIST participant

class         CDATA #REQUIRED

extensions    CDATA #IMPLIED

fileNames     CDATA #IMPLIED

contentTypeId CDATA #IMPLIED>

La spécification d'un participant de configuration de document. Afin de chercher tous les participants pour un ficher donné, les attributs de chaque spécification de participant sont étudiés dans l'ordre suivant : contentTypeId, fileNames, extensions. Si plusieurs participants sont trouvés, leur ordre d'appel n'est pas précisé.



   

<extension id=

"JavaDocumentSetupParticipant"

name=

"%javaDocumentSetupParticipant"

point=

"org.eclipse.core.filebuffers.documentSetup"

>

<participant extensions=

"java"

class=

"org.eclipse.jdt.internal.ui.javaeditor.JavaDocumentSetupParticipant"

>

</participant>

</extension>

Les participants de configuration de document doivent implémenter org.eclipse.core.filebuffers.IDocumentSetupParticipant.