Classpath Fix Processor

Identifier:
org.eclipse.jdt.ui.classpathFixProcessors

Since:
3.4

Description:
This extension point allows to add a processor to offer fixes for incomplete class paths when types cannot be resolved.

This extension point supports the enablement tag. Properties to test on are:

  • project: type IJavaProject; the current project
  • sourceLevel: type String; the source compliance of the current project
  • A processor can specify to override another processor. An overridden processor is only asked to provide proposals when the overriding processor returns null as proposals.

    Configuration Markup:

    <!ELEMENT extension (classpathFixProcessor+)>

    <!ATTLIST extension

    point CDATA #REQUIRED

    id    CDATA #IMPLIED

    name  CDATA #IMPLIED

    >


    <!ELEMENT classpathFixProcessor (enablement? , overrides*)>

    <!ATTLIST classpathFixProcessor

    id    CDATA #REQUIRED

    name  CDATA #IMPLIED

    class CDATA #REQUIRED

    >


    <!ELEMENT overrides EMPTY>

    <!ATTLIST overrides

    id IDREF #REQUIRED

    >


    Examples:
    The following is an example of a Classpath Fix processor contribution:

    
     <extension point="org.eclipse.jdt.ui.classpathFixProcessors">
      <classpathFixProcessor
       id="MyClasspathFixProcessor"
       name="My Classpath Fix Processor"
       class="com.example.MyClasspathFixProcessor">
       <enablement>
          <with variable="project">
       <test property="org.eclipse.jdt.core.isInJavaProjectWithNature"
             value="org.eclipse.pde.PluginNature"/>
          </with>
       </enablement>
       <overrides
          id="org.eclipse.jdt.ui.text.correction.DefaultClasspathFixProcessor">
       </overrides>
      </classpathFixProcessor>
     </extension>
    

    API Information:
    The contributed class must extend org.eclipse.jdt.ui.text.java.ClasspathFixProcessor


    Copyright (c) 2007, 2008 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