Character pair matchers

Identifier:
org.eclipse.ui.genericeditor.characterPairMatchers

Since:
1.2

Description:
This extension point is used to contribute character pair matchers for controlling the matching brackets on a file with a given content type.

Configuration Markup:

<!ELEMENT extension (characterPairMatcher)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT characterPairMatcher (enabledWhen?)>

<!ATTLIST characterPairMatcher

class       CDATA #REQUIRED

contentType IDREF #REQUIRED>


<!ELEMENT enabledWhen (not | or | and | instanceof | test | systemTest | equals | count | with | resolve | adapt | iterate | reference)?>

A core Expression that controls the enabled of the given character pair matcher. The viewer, editor, and editor input are registered in the evaluation context as variable: * : use it if your expression requires the viewer. * : use it if your expression requires the document. * : use it if your expression requires the editor (deprecated, not always set). * : use it if your expression requires the editor input (deprecated, not always set).



Examples:
Below is an example of how to use the character pair matchers extension point:

<extension point="org.eclipse.ui.genericeditor.characterPairMatchers">
   <characterPairMatcher
       class="org.eclipse.ui.genericeditor.examples.TargetDefinitionCharacterPairMatchers"
       contentType="org.eclipse.pde.targetFile">
      <enabledWhen>
         <with variable="editor">
            <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
            </test>
         </with>
      </enabledWhen>
   </characterPairMatcher>
</extension>


Copyright (c) 2018 Angelo ZERR and others All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html