diff options
author | Lucas Bullen | 2018-04-04 15:01:13 +0000 |
---|---|---|
committer | Mickael Istria | 2018-04-04 15:41:22 +0000 |
commit | 2137b10f5fa34ac875370405f798b8a8f3550f61 (patch) | |
tree | 0dcb79c62a415451bc5aa6a1ba7243089b7a107a | |
parent | 1259eb4e4e8e7936d3dbdbd2b15f1a3eb38d50c1 (diff) | |
download | eclipse.platform.text-2137b10f5fa34ac875370405f798b8a8f3550f61.tar.gz eclipse.platform.text-2137b10f5fa34ac875370405f798b8a8f3550f61.tar.xz eclipse.platform.text-2137b10f5fa34ac875370405f798b8a8f3550f61.zip |
Bug 532774 - [GenericEditor] Fix warnings in <enabledWhen> descriptionsI20180415-2000I20180414-1500I20180413-2000I20180412-2000I20180411-2000I20180411-0735I20180411-0530I20180410-2000I20180409-2000I20180408-2000I20180407-1500I20180406-2000I20180405-2000I20180404-2000
- Made the three example tags proper syntax
Change-Id: I4bf692d4c91949227631b37cd23d27afc3a53a90
Signed-off-by: Lucas Bullen <lbullen@redhat.com>
6 files changed, 953 insertions, 953 deletions
diff --git a/org.eclipse.ui.genericeditor/schema/autoEditStrategies.exsd b/org.eclipse.ui.genericeditor/schema/autoEditStrategies.exsd index e179bfc8c3b..edf4d046024 100644 --- a/org.eclipse.ui.genericeditor/schema/autoEditStrategies.exsd +++ b/org.eclipse.ui.genericeditor/schema/autoEditStrategies.exsd @@ -1,154 +1,154 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.ui.genericeditor" id="autoEditStrategies" name="Auto edit strategies"/>
- </appinfo>
- <documentation>
- This extension point is used to contribute auto edit strategies for a given content type.
- </documentation>
- </annotation>
-
- <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="autoEditStrategy"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="autoEditStrategy">
- <complexType>
- <sequence>
- <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
- </sequence>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- The fully qualified class name implementing the interface <code>org.eclipse.jface.text.IAutoEditStrategy</code>
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.IAutoEditStrategy"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="contentType" type="string" use="required">
- <annotation>
- <documentation>
- The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="enabledWhen">
- <annotation>
- <documentation>
- A core Expression that controls the enabled of the given auto edit strategies. 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="editor"> : use it if your expression requires the editor.
- * <with variable="editorInput"> : use it if your expression requires the editor input.
- </documentation>
- </annotation>
- <complexType>
- <choice minOccurs="0" maxOccurs="1">
- <element ref="not"/>
- <element ref="or"/>
- <element ref="and"/>
- <element ref="instanceof"/>
- <element ref="test"/>
- <element ref="systemTest"/>
- <element ref="equals"/>
- <element ref="count"/>
- <element ref="with"/>
- <element ref="resolve"/>
- <element ref="adapt"/>
- <element ref="iterate"/>
- <element ref="reference"/>
- </choice>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 1.0
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- This is an example of a strategy being registered for a target definition file type:
-
-<pre>
-<extension point="org.eclipse.ui.genericeditor.autoEditStrategies">
- <autoEditStrategy
- class="org.eclipse.ui.genericeditor.examples.TargetDefinitionAutoEditStrategy"
- contentType="org.eclipse.pde.targetFile">
- <enabledWhen>
- <with variable="editor">
- <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
- </test>
- </with>
- </enabledWhen>
- </autoEditStrategy>
-</extension>
-</pre>
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2017 Rogue Wave Software Inc. and others
-All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appinfo> + <meta.schema plugin="org.eclipse.ui.genericeditor" id="autoEditStrategies" name="Auto edit strategies"/> + </appinfo> + <documentation> + This extension point is used to contribute auto edit strategies for a given content type. + </documentation> + </annotation> + + <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> + + <element name="extension"> + <annotation> + <appinfo> + <meta.element /> + </appinfo> + </annotation> + <complexType> + <sequence minOccurs="1" maxOccurs="unbounded"> + <element ref="autoEditStrategy"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + a fully qualified identifier of the target extension point + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + an optional identifier of the extension instance + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + an optional name of the extension instance + </documentation> + <appinfo> + <meta.attribute translatable="true"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="autoEditStrategy"> + <complexType> + <sequence> + <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/> + </sequence> + <attribute name="class" type="string" use="required"> + <annotation> + <documentation> + The fully qualified class name implementing the interface <code>org.eclipse.jface.text.IAutoEditStrategy</code> + </documentation> + <appinfo> + <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.IAutoEditStrategy"/> + </appinfo> + </annotation> + </attribute> + <attribute name="contentType" type="string" use="required"> + <annotation> + <documentation> + The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point. + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="enabledWhen"> + <annotation> + <documentation> + A core Expression that controls the enabled of the given auto edit strategies. 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="editor"/> : use it if your expression requires the editor. + * <with variable="editorInput"/> : use it if your expression requires the editor input. + </documentation> + </annotation> + <complexType> + <choice minOccurs="0" maxOccurs="1"> + <element ref="not"/> + <element ref="or"/> + <element ref="and"/> + <element ref="instanceof"/> + <element ref="test"/> + <element ref="systemTest"/> + <element ref="equals"/> + <element ref="count"/> + <element ref="with"/> + <element ref="resolve"/> + <element ref="adapt"/> + <element ref="iterate"/> + <element ref="reference"/> + </choice> + </complexType> + </element> + + <annotation> + <appinfo> + <meta.section type="since"/> + </appinfo> + <documentation> + 1.0 + </documentation> + </annotation> + + <annotation> + <appinfo> + <meta.section type="examples"/> + </appinfo> + <documentation> + This is an example of a strategy being registered for a target definition file type: + +<pre> +<extension point="org.eclipse.ui.genericeditor.autoEditStrategies"> + <autoEditStrategy + class="org.eclipse.ui.genericeditor.examples.TargetDefinitionAutoEditStrategy" + contentType="org.eclipse.pde.targetFile"> + <enabledWhen> + <with variable="editor"> + <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester"> + </test> + </with> + </enabledWhen> + </autoEditStrategy> +</extension> +</pre> + </documentation> + </annotation> + + + + <annotation> + <appinfo> + <meta.section type="copyright"/> + </appinfo> + <documentation> + Copyright (c) 2017 Rogue Wave Software Inc. and others +All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> + </documentation> + </annotation> + +</schema> diff --git a/org.eclipse.ui.genericeditor/schema/contentAssistProcessors.exsd b/org.eclipse.ui.genericeditor/schema/contentAssistProcessors.exsd index 3bc7352f9c4..9133078a0b6 100644 --- a/org.eclipse.ui.genericeditor/schema/contentAssistProcessors.exsd +++ b/org.eclipse.ui.genericeditor/schema/contentAssistProcessors.exsd @@ -1,154 +1,154 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.ui.genericeditor" id="contentAssistProcessors" name="Content assist processors"/>
- </appinfo>
- <documentation>
- This extension point is used to contribute content assist processors for adding content assist support to a given content type.
- </documentation>
- </annotation>
-
- <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="contentAssistProcessor"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="contentAssistProcessor">
- <complexType>
- <sequence>
- <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
- </sequence>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- The fully qualified class name implementing the interface <code>org.eclipse.jface.text.contentassist.IContentAssistProcessor</code>
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.contentassist.IContentAssistProcessor"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="contentType" type="string" use="required">
- <annotation>
- <documentation>
- The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="enabledWhen">
- <annotation>
- <documentation>
- A core Expression that controls the enabled of the given content assist processor. 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="editor"> : use it if your expression requires the editor.
- * <with variable="editorInput"> : use it if your expression requires the editor input.
- </documentation>
- </annotation>
- <complexType>
- <choice minOccurs="0" maxOccurs="1">
- <element ref="not"/>
- <element ref="or"/>
- <element ref="and"/>
- <element ref="instanceof"/>
- <element ref="test"/>
- <element ref="systemTest"/>
- <element ref="equals"/>
- <element ref="count"/>
- <element ref="with"/>
- <element ref="resolve"/>
- <element ref="adapt"/>
- <element ref="iterate"/>
- <element ref="reference"/>
- </choice>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 1.0
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- This is an example of a processor being registered for a target definition file type:
-
-<pre>
-<extension point="org.eclipse.ui.genericeditor.contentAssistProcessors">
- <contentAssistProcessor
- class="org.eclipse.ui.genericeditor.examples.TargedDefinitionContentAssist"
- contentType="org.eclipse.pde.targetFile">
- <enabledWhen>
- <with variable="editor">
- <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
- </test>
- </with>
- </enabledWhen>
- </contentAssistProcessor>
-</extension>
-</pre>
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2016 Red Hat Inc. and others
-All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appinfo> + <meta.schema plugin="org.eclipse.ui.genericeditor" id="contentAssistProcessors" name="Content assist processors"/> + </appinfo> + <documentation> + This extension point is used to contribute content assist processors for adding content assist support to a given content type. + </documentation> + </annotation> + + <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> + + <element name="extension"> + <annotation> + <appinfo> + <meta.element /> + </appinfo> + </annotation> + <complexType> + <sequence minOccurs="1" maxOccurs="unbounded"> + <element ref="contentAssistProcessor"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + a fully qualified identifier of the target extension point + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + an optional identifier of the extension instance + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + an optional name of the extension instance + </documentation> + <appinfo> + <meta.attribute translatable="true"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="contentAssistProcessor"> + <complexType> + <sequence> + <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/> + </sequence> + <attribute name="class" type="string" use="required"> + <annotation> + <documentation> + The fully qualified class name implementing the interface <code>org.eclipse.jface.text.contentassist.IContentAssistProcessor</code> + </documentation> + <appinfo> + <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.contentassist.IContentAssistProcessor"/> + </appinfo> + </annotation> + </attribute> + <attribute name="contentType" type="string" use="required"> + <annotation> + <documentation> + The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point. + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="enabledWhen"> + <annotation> + <documentation> + A core Expression that controls the enabled of the given content assist processor. 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="editor"/> : use it if your expression requires the editor. + * <with variable="editorInput"/> : use it if your expression requires the editor input. + </documentation> + </annotation> + <complexType> + <choice minOccurs="0" maxOccurs="1"> + <element ref="not"/> + <element ref="or"/> + <element ref="and"/> + <element ref="instanceof"/> + <element ref="test"/> + <element ref="systemTest"/> + <element ref="equals"/> + <element ref="count"/> + <element ref="with"/> + <element ref="resolve"/> + <element ref="adapt"/> + <element ref="iterate"/> + <element ref="reference"/> + </choice> + </complexType> + </element> + + <annotation> + <appinfo> + <meta.section type="since"/> + </appinfo> + <documentation> + 1.0 + </documentation> + </annotation> + + <annotation> + <appinfo> + <meta.section type="examples"/> + </appinfo> + <documentation> + This is an example of a processor being registered for a target definition file type: + +<pre> +<extension point="org.eclipse.ui.genericeditor.contentAssistProcessors"> + <contentAssistProcessor + class="org.eclipse.ui.genericeditor.examples.TargedDefinitionContentAssist" + contentType="org.eclipse.pde.targetFile"> + <enabledWhen> + <with variable="editor"> + <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester"> + </test> + </with> + </enabledWhen> + </contentAssistProcessor> +</extension> +</pre> + </documentation> + </annotation> + + + + <annotation> + <appinfo> + <meta.section type="copyright"/> + </appinfo> + <documentation> + Copyright (c) 2016 Red Hat Inc. and others +All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> + </documentation> + </annotation> + +</schema> diff --git a/org.eclipse.ui.genericeditor/schema/highlightReconcilers.exsd b/org.eclipse.ui.genericeditor/schema/highlightReconcilers.exsd index 7724a4973d1..6059dda9c5c 100644 --- a/org.eclipse.ui.genericeditor/schema/highlightReconcilers.exsd +++ b/org.eclipse.ui.genericeditor/schema/highlightReconcilers.exsd @@ -1,154 +1,154 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.ui.genericeditor" id="highlightReconcilers" name="Highlight reconcilers"/>
- </appinfo>
- <documentation>
- This extension point is used to contribute highlight reconcilers for controlling the highlighting on a file with a given content type. Reconcilers attached to this extension point that listen to the preference "org.eclipse.ui.genericeditor.togglehighlight" will be toggled with the "Toggle Mark Occurences" button.
- </documentation>
- </annotation>
-
- <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="highlightReconciler"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="highlightReconciler">
- <complexType>
- <sequence>
- <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
- </sequence>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- The fully qualified class name implementing the interface <code>org.eclipse.jface.text.reconciler.IReconciler</code>
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.reconciler.IReconciler"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="contentType" type="string" use="required">
- <annotation>
- <documentation>
- The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="enabledWhen">
- <annotation>
- <documentation>
- A core Expression that controls the enabled of the given highlight reconciler. 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="editor"> : use it if your expression requires the editor.
- * <with variable="editorInput"> : use it if your expression requires the editor input.
- </documentation>
- </annotation>
- <complexType>
- <choice minOccurs="0" maxOccurs="1">
- <element ref="not"/>
- <element ref="or"/>
- <element ref="and"/>
- <element ref="instanceof"/>
- <element ref="test"/>
- <element ref="systemTest"/>
- <element ref="equals"/>
- <element ref="count"/>
- <element ref="with"/>
- <element ref="resolve"/>
- <element ref="adapt"/>
- <element ref="iterate"/>
- <element ref="reference"/>
- </choice>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 1.1
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- Below is an example of how to use the Highlight Reconciler extension point:
-
-<pre>
-<extension point="org.eclipse.ui.genericeditor.highlightReconcilers">
- <highlightReconciler
- class="org.eclipse.ui.genericeditor.examples.TargetDefinitionHighlightReconciler"
- contentType="org.eclipse.pde.targetFile">
- <enabledWhen>
- <with variable="editor">
- <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
- </test>
- </with>
- </enabledWhen>
- </highlightReconciler>
-</extension>
-</pre>
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2017 Red Hat Inc. and others
-All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appinfo> + <meta.schema plugin="org.eclipse.ui.genericeditor" id="highlightReconcilers" name="Highlight reconcilers"/> + </appinfo> + <documentation> + This extension point is used to contribute highlight reconcilers for controlling the highlighting on a file with a given content type. Reconcilers attached to this extension point that listen to the preference "org.eclipse.ui.genericeditor.togglehighlight" will be toggled with the "Toggle Mark Occurences" button. + </documentation> + </annotation> + + <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> + + <element name="extension"> + <annotation> + <appinfo> + <meta.element /> + </appinfo> + </annotation> + <complexType> + <sequence minOccurs="1" maxOccurs="unbounded"> + <element ref="highlightReconciler"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + a fully qualified identifier of the target extension point + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + an optional identifier of the extension instance + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + an optional name of the extension instance + </documentation> + <appinfo> + <meta.attribute translatable="true"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="highlightReconciler"> + <complexType> + <sequence> + <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/> + </sequence> + <attribute name="class" type="string" use="required"> + <annotation> + <documentation> + The fully qualified class name implementing the interface <code>org.eclipse.jface.text.reconciler.IReconciler</code> + </documentation> + <appinfo> + <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.reconciler.IReconciler"/> + </appinfo> + </annotation> + </attribute> + <attribute name="contentType" type="string" use="required"> + <annotation> + <documentation> + The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point. + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="enabledWhen"> + <annotation> + <documentation> + A core Expression that controls the enabled of the given highlight reconciler. 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="editor"/> : use it if your expression requires the editor. + * <with variable="editorInput"/> : use it if your expression requires the editor input. + </documentation> + </annotation> + <complexType> + <choice minOccurs="0" maxOccurs="1"> + <element ref="not"/> + <element ref="or"/> + <element ref="and"/> + <element ref="instanceof"/> + <element ref="test"/> + <element ref="systemTest"/> + <element ref="equals"/> + <element ref="count"/> + <element ref="with"/> + <element ref="resolve"/> + <element ref="adapt"/> + <element ref="iterate"/> + <element ref="reference"/> + </choice> + </complexType> + </element> + + <annotation> + <appinfo> + <meta.section type="since"/> + </appinfo> + <documentation> + 1.1 + </documentation> + </annotation> + + <annotation> + <appinfo> + <meta.section type="examples"/> + </appinfo> + <documentation> + Below is an example of how to use the Highlight Reconciler extension point: + +<pre> +<extension point="org.eclipse.ui.genericeditor.highlightReconcilers"> + <highlightReconciler + class="org.eclipse.ui.genericeditor.examples.TargetDefinitionHighlightReconciler" + contentType="org.eclipse.pde.targetFile"> + <enabledWhen> + <with variable="editor"> + <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester"> + </test> + </with> + </enabledWhen> + </highlightReconciler> +</extension> +</pre> + </documentation> + </annotation> + + + + <annotation> + <appinfo> + <meta.section type="copyright"/> + </appinfo> + <documentation> + Copyright (c) 2017 Red Hat Inc. and others +All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> + </documentation> + </annotation> + +</schema> diff --git a/org.eclipse.ui.genericeditor/schema/hoverProviders.exsd b/org.eclipse.ui.genericeditor/schema/hoverProviders.exsd index 440c2edd0af..65f26332744 100644 --- a/org.eclipse.ui.genericeditor/schema/hoverProviders.exsd +++ b/org.eclipse.ui.genericeditor/schema/hoverProviders.exsd @@ -1,183 +1,183 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.ui.genericeditor" id="hoverProviders" name="Hover providers"/>
- </appinfo>
- <documentation>
- This extension point is used to contribute hover providers for showing text hovers in a file with a given content type.
- </documentation>
- </annotation>
-
- <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="hoverProvider" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="hoverProvider">
- <complexType>
- <sequence>
- <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
- </sequence>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- A string uniquely identifying this reference provider.
- </documentation>
- </annotation>
- </attribute>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- The fully qualified class name implementing the interface <code>org.eclipse.jface.text.ITextHover</code>
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.ITextHover"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="contentType" type="string" use="required">
- <annotation>
- <documentation>
- The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="isBefore" type="string">
- <annotation>
- <documentation>
- The id of a hoverProvider before which to place this contribution.
-Plan is to have contributions are sorted according to that value and to have only the first one shown (or the the first "compoundable" ones)
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.genericeditor.hoverProviders/hoverProvider/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="isAfter" type="string">
- <annotation>
- <documentation>
- The id of a hoverProvider after which to place this contribution.
-Plan is to have contributions are sorted according to that value and to have only the first one shown (or the the first "compoundable" ones)
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.genericeditor.hoverProviders/hoverProvider/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="enabledWhen">
- <annotation>
- <documentation>
- A core Expression that controls the enabled of the given hover provider. 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="editor"> : use it if your expression requires the editor.
- * <with variable="editorInput"> : use it if your expression requires the editor input.
- </documentation>
- </annotation>
- <complexType>
- <choice minOccurs="0" maxOccurs="1">
- <element ref="not"/>
- <element ref="or"/>
- <element ref="and"/>
- <element ref="instanceof"/>
- <element ref="test"/>
- <element ref="systemTest"/>
- <element ref="equals"/>
- <element ref="count"/>
- <element ref="with"/>
- <element ref="resolve"/>
- <element ref="adapt"/>
- <element ref="iterate"/>
- <element ref="reference"/>
- </choice>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 1.0
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- Below is an example using the hover provider extension point:
-
-<pre>
-<extension point="org.eclipse.ui.genericeditor.hoverProviders">
- <hoverProvider
- class="org.eclipse.ui.genericeditor.examples.TargetDefinitionHoverProvider"
- contentType="org.eclipse.pde.targetFile">
- <enabledWhen>
- <with variable="editor">
- <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
- </test>
- </with>
- </enabledWhen>
- </hoverProvider>
-</extension>
-</pre>
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2016 Red Hat Inc. and others
-All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appinfo> + <meta.schema plugin="org.eclipse.ui.genericeditor" id="hoverProviders" name="Hover providers"/> + </appinfo> + <documentation> + This extension point is used to contribute hover providers for showing text hovers in a file with a given content type. + </documentation> + </annotation> + + <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> + + <element name="extension"> + <annotation> + <appinfo> + <meta.element /> + </appinfo> + </annotation> + <complexType> + <sequence> + <element ref="hoverProvider" minOccurs="1" maxOccurs="unbounded"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + a fully qualified identifier of the target extension point + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + an optional identifier of the extension instance + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + an optional name of the extension instance + </documentation> + <appinfo> + <meta.attribute translatable="true"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="hoverProvider"> + <complexType> + <sequence> + <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/> + </sequence> + <attribute name="id" type="string"> + <annotation> + <documentation> + A string uniquely identifying this reference provider. + </documentation> + </annotation> + </attribute> + <attribute name="class" type="string" use="required"> + <annotation> + <documentation> + The fully qualified class name implementing the interface <code>org.eclipse.jface.text.ITextHover</code> + </documentation> + <appinfo> + <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.ITextHover"/> + </appinfo> + </annotation> + </attribute> + <attribute name="contentType" type="string" use="required"> + <annotation> + <documentation> + The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point. + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> + </appinfo> + </annotation> + </attribute> + <attribute name="isBefore" type="string"> + <annotation> + <documentation> + The id of a hoverProvider before which to place this contribution. +Plan is to have contributions are sorted according to that value and to have only the first one shown (or the the first "compoundable" ones) + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.ui.genericeditor.hoverProviders/hoverProvider/@id"/> + </appinfo> + </annotation> + </attribute> + <attribute name="isAfter" type="string"> + <annotation> + <documentation> + The id of a hoverProvider after which to place this contribution. +Plan is to have contributions are sorted according to that value and to have only the first one shown (or the the first "compoundable" ones) + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.ui.genericeditor.hoverProviders/hoverProvider/@id"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="enabledWhen"> + <annotation> + <documentation> + A core Expression that controls the enabled of the given hover provider. 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="editor"/> : use it if your expression requires the editor. + * <with variable="editorInput"/> : use it if your expression requires the editor input. + </documentation> + </annotation> + <complexType> + <choice minOccurs="0" maxOccurs="1"> + <element ref="not"/> + <element ref="or"/> + <element ref="and"/> + <element ref="instanceof"/> + <element ref="test"/> + <element ref="systemTest"/> + <element ref="equals"/> + <element ref="count"/> + <element ref="with"/> + <element ref="resolve"/> + <element ref="adapt"/> + <element ref="iterate"/> + <element ref="reference"/> + </choice> + </complexType> + </element> + + <annotation> + <appinfo> + <meta.section type="since"/> + </appinfo> + <documentation> + 1.0 + </documentation> + </annotation> + + <annotation> + <appinfo> + <meta.section type="examples"/> + </appinfo> + <documentation> + Below is an example using the hover provider extension point: + +<pre> +<extension point="org.eclipse.ui.genericeditor.hoverProviders"> + <hoverProvider + class="org.eclipse.ui.genericeditor.examples.TargetDefinitionHoverProvider" + contentType="org.eclipse.pde.targetFile"> + <enabledWhen> + <with variable="editor"> + <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester"> + </test> + </with> + </enabledWhen> + </hoverProvider> +</extension> +</pre> + </documentation> + </annotation> + + + + <annotation> + <appinfo> + <meta.section type="copyright"/> + </appinfo> + <documentation> + Copyright (c) 2016 Red Hat Inc. and others +All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> + </documentation> + </annotation> + +</schema> diff --git a/org.eclipse.ui.genericeditor/schema/presentationReconcilers.exsd b/org.eclipse.ui.genericeditor/schema/presentationReconcilers.exsd index ab7bdf59cf6..248283977d0 100644 --- a/org.eclipse.ui.genericeditor/schema/presentationReconcilers.exsd +++ b/org.eclipse.ui.genericeditor/schema/presentationReconcilers.exsd @@ -1,154 +1,154 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.ui.genericeditor" id="presentationReconcilers" name="Presentation reconcilers"/>
- </appinfo>
- <documentation>
- This extension point is used to contribute presentation reconcilers for controlling the presentation on a file with a given content type.
- </documentation>
- </annotation>
-
- <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="presentationReconciler"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="presentationReconciler">
- <complexType>
- <sequence>
- <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
- </sequence>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- The fully qualified class name implementing the interface <code>org.eclipse.jface.text.presentation.IPresentationReconciler</code>
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.presentation.IPresentationReconciler"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="contentType" type="string" use="required">
- <annotation>
- <documentation>
- The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="enabledWhen">
- <annotation>
- <documentation>
- A core Expression that controls the enabled of the given presentation reconciler. 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="editor"> : use it if your expression requires the editor.
- * <with variable="editorInput"> : use it if your expression requires the editor input.
- </documentation>
- </annotation>
- <complexType>
- <choice minOccurs="0" maxOccurs="1">
- <element ref="not"/>
- <element ref="or"/>
- <element ref="and"/>
- <element ref="instanceof"/>
- <element ref="test"/>
- <element ref="systemTest"/>
- <element ref="equals"/>
- <element ref="count"/>
- <element ref="with"/>
- <element ref="resolve"/>
- <element ref="adapt"/>
- <element ref="iterate"/>
- <element ref="reference"/>
- </choice>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 1.0
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- Below is an example of how to use the Presentation Reconciler extension point:
-
-<pre>
-<extension point="org.eclipse.ui.genericeditor.presentationReconcilers">
- <presentationReconciler
- class="org.eclipse.ui.genericeditor.examples.TargetDefinitionPresentationReconciler"
- contentType="org.eclipse.pde.targetFile">
- <enabledWhen>
- <with variable="editor">
- <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
- </test>
- </with>
- </enabledWhen>
- </presentationReconciler>
-</extension>
-</pre>
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2016 Red Hat Inc. and others
-All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appinfo> + <meta.schema plugin="org.eclipse.ui.genericeditor" id="presentationReconcilers" name="Presentation reconcilers"/> + </appinfo> + <documentation> + This extension point is used to contribute presentation reconcilers for controlling the presentation on a file with a given content type. + </documentation> + </annotation> + + <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> + + <element name="extension"> + <annotation> + <appinfo> + <meta.element /> + </appinfo> + </annotation> + <complexType> + <sequence minOccurs="1" maxOccurs="unbounded"> + <element ref="presentationReconciler"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + a fully qualified identifier of the target extension point + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + an optional identifier of the extension instance + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + an optional name of the extension instance + </documentation> + <appinfo> + <meta.attribute translatable="true"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="presentationReconciler"> + <complexType> + <sequence> + <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/> + </sequence> + <attribute name="class" type="string" use="required"> + <annotation> + <documentation> + The fully qualified class name implementing the interface <code>org.eclipse.jface.text.presentation.IPresentationReconciler</code> + </documentation> + <appinfo> + <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.presentation.IPresentationReconciler"/> + </appinfo> + </annotation> + </attribute> + <attribute name="contentType" type="string" use="required"> + <annotation> + <documentation> + The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point. + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="enabledWhen"> + <annotation> + <documentation> + A core Expression that controls the enabled of the given presentation reconciler. 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="editor"/> : use it if your expression requires the editor. + * <with variable="editorInput"/> : use it if your expression requires the editor input. + </documentation> + </annotation> + <complexType> + <choice minOccurs="0" maxOccurs="1"> + <element ref="not"/> + <element ref="or"/> + <element ref="and"/> + <element ref="instanceof"/> + <element ref="test"/> + <element ref="systemTest"/> + <element ref="equals"/> + <element ref="count"/> + <element ref="with"/> + <element ref="resolve"/> + <element ref="adapt"/> + <element ref="iterate"/> + <element ref="reference"/> + </choice> + </complexType> + </element> + + <annotation> + <appinfo> + <meta.section type="since"/> + </appinfo> + <documentation> + 1.0 + </documentation> + </annotation> + + <annotation> + <appinfo> + <meta.section type="examples"/> + </appinfo> + <documentation> + Below is an example of how to use the Presentation Reconciler extension point: + +<pre> +<extension point="org.eclipse.ui.genericeditor.presentationReconcilers"> + <presentationReconciler + class="org.eclipse.ui.genericeditor.examples.TargetDefinitionPresentationReconciler" + contentType="org.eclipse.pde.targetFile"> + <enabledWhen> + <with variable="editor"> + <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester"> + </test> + </with> + </enabledWhen> + </presentationReconciler> +</extension> +</pre> + </documentation> + </annotation> + + + + <annotation> + <appinfo> + <meta.section type="copyright"/> + </appinfo> + <documentation> + Copyright (c) 2016 Red Hat Inc. and others +All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> + </documentation> + </annotation> + +</schema> diff --git a/org.eclipse.ui.genericeditor/schema/reconcilers.exsd b/org.eclipse.ui.genericeditor/schema/reconcilers.exsd index 0ae5376e2cc..4edaf2898bb 100644 --- a/org.eclipse.ui.genericeditor/schema/reconcilers.exsd +++ b/org.eclipse.ui.genericeditor/schema/reconcilers.exsd @@ -1,154 +1,154 @@ -<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.ui.genericeditor" id="reconcilers" name="Reconcilers"/>
- </appinfo>
- <documentation>
- This extension point is used to contribute reconcilers for controlling the presentation on a file with a given content type.
- </documentation>
- </annotation>
-
- <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="reconciler"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="reconciler">
- <complexType>
- <sequence>
- <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/>
- </sequence>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- The fully qualified class name implementing the interface <code>org.eclipse.jface.text.reconciler.IReconciler</code>
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.reconciler.IReconciler"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="contentType" type="string" use="required">
- <annotation>
- <documentation>
- The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="enabledWhen">
- <annotation>
- <documentation>
- A core Expression that controls the enabled of the given reconciler. 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="editor"> : use it if your expression requires the editor.
- * <with variable="editorInput"> : use it if your expression requires the editor input.
- </documentation>
- </annotation>
- <complexType>
- <choice minOccurs="0" maxOccurs="1">
- <element ref="not"/>
- <element ref="or"/>
- <element ref="and"/>
- <element ref="instanceof"/>
- <element ref="test"/>
- <element ref="systemTest"/>
- <element ref="equals"/>
- <element ref="count"/>
- <element ref="with"/>
- <element ref="resolve"/>
- <element ref="adapt"/>
- <element ref="iterate"/>
- <element ref="reference"/>
- </choice>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 1.1
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- Below is an example of how to use the Reconciler extension point:
-
-<pre>
-<extension point="org.eclipse.ui.genericeditor.reconcilers">
- <reconciler
- class="org.eclipse.ui.genericeditor.examples.TargetDefinitionReconciler"
- contentType="org.eclipse.pde.targetFile">
- <enabledWhen>
- <with variable="editor">
- <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester">
- </test>
- </with>
- </enabledWhen>
- </reconciler>
-</extension>
-</pre>
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2017 Red Hat Inc. and others
-All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?> +<!-- Schema file written by PDE --> +<schema targetNamespace="org.eclipse.ui.genericeditor" xmlns="http://www.w3.org/2001/XMLSchema"> +<annotation> + <appinfo> + <meta.schema plugin="org.eclipse.ui.genericeditor" id="reconcilers" name="Reconcilers"/> + </appinfo> + <documentation> + This extension point is used to contribute reconcilers for controlling the presentation on a file with a given content type. + </documentation> + </annotation> + + <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> + + <element name="extension"> + <annotation> + <appinfo> + <meta.element /> + </appinfo> + </annotation> + <complexType> + <sequence minOccurs="1" maxOccurs="unbounded"> + <element ref="reconciler"/> + </sequence> + <attribute name="point" type="string" use="required"> + <annotation> + <documentation> + a fully qualified identifier of the target extension point + </documentation> + </annotation> + </attribute> + <attribute name="id" type="string"> + <annotation> + <documentation> + an optional identifier of the extension instance + </documentation> + </annotation> + </attribute> + <attribute name="name" type="string"> + <annotation> + <documentation> + an optional name of the extension instance + </documentation> + <appinfo> + <meta.attribute translatable="true"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="reconciler"> + <complexType> + <sequence> + <element ref="enabledWhen" minOccurs="0" maxOccurs="1"/> + </sequence> + <attribute name="class" type="string" use="required"> + <annotation> + <documentation> + The fully qualified class name implementing the interface <code>org.eclipse.jface.text.reconciler.IReconciler</code> + </documentation> + <appinfo> + <meta.attribute kind="java" basedOn=":org.eclipse.jface.text.reconciler.IReconciler"/> + </appinfo> + </annotation> + </attribute> + <attribute name="contentType" type="string" use="required"> + <annotation> + <documentation> + The target content-type for this extension. Content-types are defined as extension to the org.eclipse.core.contenttype.contentTypes extension point. + </documentation> + <appinfo> + <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> + </appinfo> + </annotation> + </attribute> + </complexType> + </element> + + <element name="enabledWhen"> + <annotation> + <documentation> + A core Expression that controls the enabled of the given reconciler. 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="editor"/> : use it if your expression requires the editor. + * <with variable="editorInput"/> : use it if your expression requires the editor input. + </documentation> + </annotation> + <complexType> + <choice minOccurs="0" maxOccurs="1"> + <element ref="not"/> + <element ref="or"/> + <element ref="and"/> + <element ref="instanceof"/> + <element ref="test"/> + <element ref="systemTest"/> + <element ref="equals"/> + <element ref="count"/> + <element ref="with"/> + <element ref="resolve"/> + <element ref="adapt"/> + <element ref="iterate"/> + <element ref="reference"/> + </choice> + </complexType> + </element> + + <annotation> + <appinfo> + <meta.section type="since"/> + </appinfo> + <documentation> + 1.1 + </documentation> + </annotation> + + <annotation> + <appinfo> + <meta.section type="examples"/> + </appinfo> + <documentation> + Below is an example of how to use the Reconciler extension point: + +<pre> +<extension point="org.eclipse.ui.genericeditor.reconcilers"> + <reconciler + class="org.eclipse.ui.genericeditor.examples.TargetDefinitionReconciler" + contentType="org.eclipse.pde.targetFile"> + <enabledWhen> + <with variable="editor"> + <test property="org.eclipse.ui.genericeditor.examples.TargetDefinitionPropertyTester"> + </test> + </with> + </enabledWhen> + </reconciler> +</extension> +</pre> + </documentation> + </annotation> + + + + <annotation> + <appinfo> + <meta.section type="copyright"/> + </appinfo> + <documentation> + Copyright (c) 2017 Red Hat Inc. and others +All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> + </documentation> + </annotation> + +</schema> |