List of usage examples for org.eclipse.jdt.core.compiler IProblem MissingTypeInConstructor
int MissingTypeInConstructor
To view the source code for org.eclipse.jdt.core.compiler IProblem MissingTypeInConstructor.
Click Source Link
From source file:org.eclipse.pde.internal.ui.correction.java.QuickFixProcessor.java
License:Open Source License
public IJavaCompletionProposal[] getCorrections(IInvocationContext context, IProblemLocation[] locations) throws CoreException { ArrayList<Object> results = new ArrayList<Object>(); AbstractClassResolutionCollector collector = createCollector(results); for (IProblemLocation location : locations) { int id = location.getProblemId(); switch (id) { case IProblem.ForbiddenReference: handleAccessRestrictionProblem(context, location, collector); case IProblem.ImportNotFound: // fall through case IProblem.UndefinedName: // fall through case IProblem.UndefinedType: // fall through case IProblem.UnresolvedVariable: // fall through case IProblem.MissingTypeInMethod: // fall through case IProblem.MissingTypeInConstructor: handleImportNotFound(context, location, collector); }/*from w ww . ja v a 2 s . c o m*/ } return results.toArray(new IJavaCompletionProposal[results.size()]); }
From source file:org.eclipse.pde.internal.ui.correction.java.QuickFixProcessor.java
License:Open Source License
public boolean hasCorrections(ICompilationUnit unit, int problemId) { switch (problemId) { case IProblem.ForbiddenReference: case IProblem.UndefinedName: // fall through case IProblem.ImportNotFound: // fall through case IProblem.UndefinedType: // fall through case IProblem.UnresolvedVariable: // fall through case IProblem.MissingTypeInMethod: // fall through case IProblem.MissingTypeInConstructor: IJavaElement parent = unit.getParent(); if (parent != null) { IJavaProject project = parent.getJavaProject(); if (project != null) return WorkspaceModelManager.isPluginProject(project.getProject()); }//ww w. j a v a2s. c om } return false; }