Community
Participate
Working Groups
I20060125-0800. When developping 1.4 code in Eclipse running on a 5.0 SDK the two APT plug-ins get loaded (activated state). They should only be loaded when needed. The JDT Core extension point should allow to express the required source level.
Note that the apt.ui plugin gets activated by JDT UI through ContributedProcessorDescriptor#getProcessor(ICompilationUnit). So we need a more general solution than adding the required source level on the 'compilationParticipant' extension point.
It feels that the UI participant (quickfix) should be parameterized by some marker type; i.e. until APT markers are created, there is no need to compute quickfixes for APT problems.
I was too fast when I say a general solution was required (I was actually thinking of using the Bundle-RequiredExecutionEvironment, but this is at the runtime level. So we'll fix the JDT Core part by adding a required source level on the 'compilationParticipant' extension point. I entered bug 125450 against JDT UI for its counterpart.
Added 'requiredSourceLevel' attribute in 'compilationParticipant.exsd'. Changed JavaModelManager.CompilationParticipants to check this attribute and compare it to the project's source level. Added regression test ReconcilerTests#testReconcileParticipant07()
Jess, do you need a bug against APT?
I'll make the fix to APT directly.
Verified for 3.2 M5 using build I20060214-0010.