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 (state == null)
					internalBeginReporting(false);				
			}
			
			/*
			 * @see org.eclipse.jdt.internal.ui.text.java.IProblemRequestorExtension#beginReportingSequence()
			 */
			public void beginReportingSequence() {
				ProblemRequestorState state= (ProblemRequestorState) fProblemRequestorState.get();
				if (state == null)
					internalBeginReporting(true);
			}
			
			/**
			 * Sets up the infrastructure necessary for problem reporting.
			 * 
			 * @param insideReportingSequence <code>true</code> if this method
			 *            call is issued from inside a reporting sequence
			 */
			private void internalBeginReporting(boolean insideReportingSequence) {
				if (fCompilationUnit != null && fCompilationUnit.getJavaProject().isOnClasspath(fCompilationUnit)) {
					ProblemRequestorState state= new ProblemRequestorState();
					state.fInsideReportingSequence= insideReportingSequence;
					state.fReportedProblems= new ArrayList();
					synchronized (getLockObject()) {
						fProblemRequestorState.set(state);
						++fStateCount;
					}
				}
			}