Bug 76283 [performance] Problems requested twice when opening a Java editor
I20041013 When opening a Java editor, problems are requested once during ICompilationUnit#becomeWorkingCopy and once during ICompilationUnit#reconcile. The IProblemRequestor should be disabled during #becomeWorkingCopy so as to avoid to compute problems (which involves the full resolution of the working copy).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
if (reportedProblems != null && reportedProblems.size() > 0) {
												
						Iterator e= reportedProblems.iterator();
						while (e.hasNext()) {
							
							if (fProgressMonitor != null && fProgressMonitor.isCanceled()) {
								isCanceled= true;
								break;
							}
								
							IProblem problem= (IProblem) e.next();
							Position position= createPositionFromProblem(problem);
							if (position != null) {
								
								try {
									ProblemAnnotation annotation= new ProblemAnnotation(problem, fCompilationUnit);
									overlayMarkers(position, annotation);								
									addAnnotation(annotation, position, false);
									fGeneratedAnnotations.add(annotation);
								
									temporaryProblemsChanged= true;
								} catch (BadLocationException x) {
									
								}
							}
						}
					}
					
					removeMarkerOverlays(isCanceled);