Quick Assist Processor

Identifier:
org.eclipse.jdt.ui.quickAssistProcessors

Since:
3.0

Description:
This extension point allows to add a Quick Assist processor to offer new Quick Assists in the Java 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

    >


    <!ELEMENT quickAssistProcessor (enablement?)>

    <!ATTLIST quickAssistProcessor

    id                  CDATA #REQUIRED

    name                CDATA #IMPLIED

    class               CDATA #IMPLIED

    requiredSourceLevel CDATA #IMPLIED

    >


    Examples:
    The following is an example of a Quick Assist processor contribution:

    
     <extension point="org.eclipse.jdt.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.jdt.core.javanature"/>
             </iterate>
          </with>
       </enablement>
     </extension>
    

    API Information:
    The contributed class must implement org.eclipse.jdt.ui.text.java.IQuickAssistProcessor


    Copyright (c) 2001, 2004 IBM Corporation 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 http://www.eclipse.org/legal/epl-v10.html