Community
Participate
Working Groups
3.4 We should add an extension point where contributers can tell us how to fix unresolvable reference to a type. For example if a JUnit type is missing, 'Test', PDE would fix this by adding a plug-in dependency. This would help us with useless proposals of the 'Fix unresolved reference' quick fix (bug 116501) and in the JUnit wizard (bug 195674).
We love JDT
added new extension point 'org.eclipse.jdt.ui.classpathFixProcessors' > 20070912 Clients can contribute their own ClasspathFixProcessor that can also override other ClasspathFixProcessors. For example, org.eclipse.jdt.ui.junit provides a processor that adds the JUnit container for all import starting with 'junit' or 'org.junit'. <extension point="org.eclipse.jdt.ui.classpathFixProcessors"> <classpathFixProcessor name="%junitClasspathFixProcessor" class="org.eclipse.jdt.internal.junit.ui.JUnitClasspathFixProcessor" id="org.eclipse.jdt.junit.JUnitClasspathFixProcessor"> <overrides id="org.eclipse.jdt.ui.text.correction.DefaultClasspathFixProcessor"> </overrides> </classpathFixProcessor> </extension> PDE can now add a processor that replaces this processor by one that adds a plug-in dependency to org.junit instead of adding the JUnit container. Chris, let me know if you need help.