| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.jdt.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.jdt.ui" id="classpathFixProcessors" name="Classpath Fix Processor"/> |
| </appinfo> |
| <documentation> |
| This extension point allows to add a processor to offer fixes for incomplete class paths when types cannot be resolved. |
| |
| <p> |
| This extension point supports the <code>&lt;enablement&gt;</code> element. |
| <!-- see org.eclipse.jdt.internal.ui.text.correction.ClasspathFixProcessorDescriptor#matches(IJavaProject): --> |
| The default variable is the containing <code>org.eclipse.jdt.core.IJavaProject</code>. |
| <br>Defined variables for <code>&lt;with&gt;</code> expressions are: |
| </p> |
| <ul> |
| <li>"project": type <code>org.eclipse.jdt.core.IJavaProject</code>; the current project (same as the default variable)</li> |
| <li>"sourceLevel": type <code>java.lang.String</code>; the source compliance level of the current project</li> |
| </ul> |
| |
| A processor can specify to override another processor. An overridden processor is only asked to provide proposals when the overriding processor returns <code>null</code> as proposals. |
| </documentation> |
| </annotation> |
| |
| <include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="classpathFixProcessor" 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="classpathFixProcessor"> |
| <complexType> |
| <sequence> |
| <element ref="enablement" minOccurs="0" maxOccurs="1"/> |
| <element ref="overrides" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a unique identifier for the Classpath Fix processor |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| a localized name of the Classpath Fix processor |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the name of the class that implements this Classpath Fix processor. The |
| class must be public and extend |
| <samp>org.eclipse.jdt.ui.text.java.ClasspathFixProcessor</samp> |
| with a public 0-argument constructor. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.jdt.ui.text.java.ClasspathFixProcessor:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="overrides"> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The id of the classspath fix processor that is overridden by the current processor. The current processor can choose to replace proposals of the extended processor. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.jdt.ui.classpathFixProcessors/classpathFixProcessor/@id"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| 3.4 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| The following is an example of a Classpath Fix processor contribution: |
| |
| <pre> |
| <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> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiInfo"/> |
| </appinfo> |
| <documentation> |
| The contributed class must extend <code>org.eclipse.jdt.ui.text.java.ClasspathFixProcessor</code> |
| </documentation> |
| </annotation> |
| |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2007, 2013 IBM Corporation and others.<br> |
| |
| This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/ |
| |
| SPDX-License-Identifier: EPL-2.0 |
| </documentation> |
| </annotation> |
| |
| </schema> |