This extension point supports the <enablement>
element.
The default variable is the containing org.eclipse.jdt.core.IJavaProject
.
Defined variables for <with>
expressions are:
org.eclipse.jdt.core.IJavaProject
; the current project (same as the default variable)java.lang.String
; the source compliance level of the current projectnull
as proposals.
<!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>
<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>
org.eclipse.jdt.ui.text.java.ClasspathFixProcessor
Copyright (c) 2007, 2013 IBM Corporation and others.
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 https://www.eclipse.org/legal/epl-v20.html/
SPDX-License-Identifier: EPL-2.0