public DiagnosticsHandler(JavaClientConnection conn, ICompilationUnit cu) { problems = new ArrayList<>(); this.cu = cu; this.uri = JDTUtils.toURI(cu); this.connection = conn; this.isDefaultProject = JDTUtils.isDefaultProject(cu); this.reportAllErrors = !isDefaultProject && JDTUtils.isOnClassPath(cu); }
toReconcile.remove(unit); if (JDTUtils.isDefaultProject(unit) || !JDTUtils.isOnClassPath(unit) || unit.getResource().isDerived()) { new DiagnosticsHandler(connection, unit).clearDiagnostics(); } else if (unit.hasUnsavedChanges()) {
if (isDefaultProject || !JDTUtils.isOnClassPath(unit)) { Severity severity = preferenceManager.getPreferences(project).getIncompleteClasspathSeverity(); String msg;