Quick Assist Processor
Identifier:
org.eclipse.wst.jsdt.ui.quickAssistProcessors
Since:
3.0
Description:
This extension point allows to add a Quick Assist processor to offer new Quick Assists in the JavaScript editor.
This extension point supports the enablement
tag. Properties to test on are:
compilationUnit: type ICompilationUnit; the compilation unit the quick assist is applied on
projectNatures: type Collection; all project natures of the current project
sourceLevel: type String; the source compliance of the current project
Configuration Markup:
<!ELEMENT extension (quickAssistProcessor+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
- point - a fully qualified identifier of the target extension point
- id - an optional identifier of the extension instance
- name - an optional name of the extension instance
<!ELEMENT quickAssistProcessor (enablement?)>
<!ATTLIST quickAssistProcessor
id CDATA #REQUIRED
name CDATA #IMPLIED
class CDATA #IMPLIED
requiredSourceLevel CDATA #IMPLIED>
- id - a unique identifier for the Quick Assist processor
- name - a localized name of the Quick Assist processor
- class - the name of the class that implements this Quick Assist processor. The
class must be public and implement
org.eclipse.wst.jsdt.ui.text.java.IQuickAssistProcessor
with a public 0-argument constructor.
- requiredSourceLevel - an optional attribute to specify the minimal source compliance this processor requires
Examples:
The following is an example of a Quick Assist processor contribution:
<extension point="org.eclipse.wst.jsdt.ui.quickAssistProcessors">
<quickAssistProcessor
id="AdvancedQuickAssistProcessor"
name="Advanced Quick Assist Processor"
requiredSourceLevel="1.5"
class="com.example.AdvancedQuickAssistProcessor">
</quickAssistProcessor>
<enablement>
<with variable="projectNatures">
<iterate operator="or">
<equals value="org.eclipse.wst.jsdt.core.javanature"/>
</iterate>
</with>
</enablement>
</extension>
API Information:
The contributed class must implement org.eclipse.wst.jsdt.ui.text.java.IQuickAssistProcessor
Copyright (c) 2007 IBM Corporation 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 https://www.eclipse.org/legal/epl-2.0/