Lines 14-19
Link Here
|
14 |
* [quick fix] don't propose null annotations when those are disabled - https://bugs.eclipse.org/405086 |
14 |
* [quick fix] don't propose null annotations when those are disabled - https://bugs.eclipse.org/405086 |
15 |
* [quickfix] Update null annotation quick fixes for bug 388281 - https://bugs.eclipse.org/395555 |
15 |
* [quickfix] Update null annotation quick fixes for bug 388281 - https://bugs.eclipse.org/395555 |
16 |
* Lukas Hanke <hanke@yatta.de> - Bug 241696 [quick fix] quickfix to iterate over a collection - https://bugs.eclipse.org/bugs/show_bug.cgi?id=241696 |
16 |
* Lukas Hanke <hanke@yatta.de> - Bug 241696 [quick fix] quickfix to iterate over a collection - https://bugs.eclipse.org/bugs/show_bug.cgi?id=241696 |
|
|
17 |
* Lukas Hanke <hanke@yatta.de> - Bug 430818 [1.8][quick fix] Quick fix for "for loop" is not shown for bare local variable/argument/field - https://bugs.eclipse.org/bugs/show_bug.cgi?id=430818 |
17 |
*******************************************************************************/ |
18 |
*******************************************************************************/ |
18 |
package org.eclipse.jdt.internal.ui.text.correction; |
19 |
package org.eclipse.jdt.internal.ui.text.correction; |
19 |
|
20 |
|
Lines 273-278
Link Here
|
273 |
case IProblem.ConstructorReferenceNotBelow18: |
274 |
case IProblem.ConstructorReferenceNotBelow18: |
274 |
case IProblem.IntersectionCastNotBelow18: |
275 |
case IProblem.IntersectionCastNotBelow18: |
275 |
case IProblem.InvalidUsageOfTypeAnnotations: |
276 |
case IProblem.InvalidUsageOfTypeAnnotations: |
|
|
277 |
case IProblem.ParsingErrorInsertToComplete: |
276 |
return true; |
278 |
return true; |
277 |
default: |
279 |
default: |
278 |
return SuppressWarningsSubProcessor.hasSuppressWarningsProposal(cu.getJavaProject(), problemId); |
280 |
return SuppressWarningsSubProcessor.hasSuppressWarningsProposal(cu.getJavaProject(), problemId); |
Lines 367-372
Link Here
|
367 |
ReorgCorrectionsSubProcessor.getWrongPackageDeclNameProposals(context, problem, proposals); |
369 |
ReorgCorrectionsSubProcessor.getWrongPackageDeclNameProposals(context, problem, proposals); |
368 |
break; |
370 |
break; |
369 |
case IProblem.UndefinedType: |
371 |
case IProblem.UndefinedType: |
|
|
372 |
LocalCorrectionsSubProcessor.getGenerateForLoopProposals(context, problem, proposals); |
373 |
//$FALL-THROUGH$ |
370 |
case IProblem.JavadocUndefinedType: |
374 |
case IProblem.JavadocUndefinedType: |
371 |
UnresolvedElementsSubProcessor.getTypeProposals(context, problem, proposals); |
375 |
UnresolvedElementsSubProcessor.getTypeProposals(context, problem, proposals); |
372 |
break; |
376 |
break; |
Lines 760-765
Link Here
|
760 |
NullAnnotationsCorrectionProcessor.addReturnAndArgumentTypeProposal(context, problem, ChangeKind.LOCAL, proposals); |
764 |
NullAnnotationsCorrectionProcessor.addReturnAndArgumentTypeProposal(context, problem, ChangeKind.LOCAL, proposals); |
761 |
NullAnnotationsCorrectionProcessor.addReturnAndArgumentTypeProposal(context, problem, ChangeKind.INVERSE, proposals); |
765 |
NullAnnotationsCorrectionProcessor.addReturnAndArgumentTypeProposal(context, problem, ChangeKind.INVERSE, proposals); |
762 |
break; |
766 |
break; |
|
|
767 |
case IProblem.ParsingErrorInsertToComplete: |
768 |
LocalCorrectionsSubProcessor.getGenerateForLoopProposals(context, problem, proposals); |
769 |
break; |
763 |
default: |
770 |
default: |
764 |
} |
771 |
} |
765 |
if (JavaModelUtil.is50OrHigher(context.getCompilationUnit().getJavaProject())) { |
772 |
if (JavaModelUtil.is50OrHigher(context.getCompilationUnit().getJavaProject())) { |