Fixed bug 128055: [api] polish quickAssistProcessor extension point
diff --git a/org.eclipse.ui.workbench.texteditor/META-INF/MANIFEST.MF b/org.eclipse.ui.workbench.texteditor/META-INF/MANIFEST.MF
index 0cefc1b..1061610 100644
--- a/org.eclipse.ui.workbench.texteditor/META-INF/MANIFEST.MF
+++ b/org.eclipse.ui.workbench.texteditor/META-INF/MANIFEST.MF
@@ -20,6 +20,7 @@
org.eclipse.ui.texteditor.templates
Require-Bundle:
org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)",
+ org.eclipse.core.expressions;bundle-version="[3.2.0,4.0.0)",
org.eclipse.jface.text;bundle-version="[3.2.0,4.0.0)",
org.eclipse.core.filesystem;bundle-version="[1.0.0,2.0.0)",
org.eclipse.ui;bundle-version="[3.2.0,4.0.0)"
diff --git a/org.eclipse.ui.workbench.texteditor/schema/quickAssistProcessor.exsd b/org.eclipse.ui.workbench.texteditor/schema/quickAssistProcessor.exsd
index 00f5afe..3fef5d7 100644
--- a/org.eclipse.ui.workbench.texteditor/schema/quickAssistProcessor.exsd
+++ b/org.eclipse.ui.workbench.texteditor/schema/quickAssistProcessor.exsd
@@ -7,19 +7,21 @@
</appInfo>
<documentation>
<br><br>
-<strong>This extension point is not yet in use for M5. The implementation will be provided during M6.</strong>
+<blink><strong>This extension point is not yet in use for M5. The implementation will be provided during M6.</strong></blink>
<br><br>
-This extension point allows to add Quick Assist processors which can offer Quick Fixes for a given annotation type and Quick Assists for a given invocation context.
+This extension point allows to add quick assist processors which can offer Quick Fixes for a given annotation type and Quick Assists for a given invocation context. A Quick Fix is a completion that can correct a problem reported and visible through an annotation (<code>Annotation</code>) while a Quick Assist is not related to a problem or annotation. Since Quick Assists can be proposed where appropriate they are normally not visible in the viewer.
<p>
-This extension point supports the <code>enablement</code> tag. Properties to test on are:
-<dl>
+This extension point supports the <code>enablement</code> tag. Variables available for testing are:
+<ul>
<li>invocationContext: type IQuickAssistInvocationContext; the context in which quick assist or quick fix is requested</li>
-</dl>
+</ul>
</p>
</documentation>
</annotation>
+ <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
+
<element name="extension">
<complexType>
<attribute name="point" type="string" use="required">
@@ -51,6 +53,9 @@
<element name="provider">
<complexType>
+ <sequence>
+ <element ref="enablement"/>
+ </sequence>
<attribute name="annotationType" type="string">
<annotation>
<documentation>