schema.characterPairMatchers.exsd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.ui.genericeditor Show documentation
Show all versions of org.eclipse.ui.genericeditor Show documentation
Generic and Extensible Text Editor
The newest version!
This extension point is used to contribute character pair matchers for controlling the matching brackets on a file with a given content type.
a fully qualified identifier of the target extension point
an optional identifier of the extension instance
an optional name of the extension instance
The fully qualified class name implementing the interface <code>org.eclipse.jface.text.source.ICharacterPairMatcher</code>
The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
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:
* <with variable="viewer"/> : use it if your expression requires the viewer.
* <with variable="document"/> : use it if your expression requires the document.
* <with variable="editor"/> : use it if your expression requires the editor (deprecated, not always set).
* <with variable="editorInput"/> : use it if your expression requires the editor input (deprecated, not always set).
1.2
Below is an example of how to use the character pair matchers extension point:
<pre>
<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>
</pre>
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 <a href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy