Bug 53299 Synchronizing 5 projects is locking too much
Build 20040219 While synchronizing 5 projects, I started editing one file in project no.1, while no.3 was being synchronized (1 was long done). I still got locked on validate edit, though the project 1 should have been released from the sync rsc lock. (I did check that no other competing job was getting in the way)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/filebuffers/CompilationUnitDocumentProvider2.java
private static final String SPELLING_ANNOTATION_TYPE= "org.eclipse.ui.workbench.texteditor.spelling";
			
			
			/** 
			 * The layer in which task problem annotations are located.
			 */
			private static final int TASK_LAYER;
			/** 
			 * The layer in which info problem annotations are located.
			 */
			private static final int INFO_LAYER;
			/** 
			 * The layer in which warning problem annotations representing are located.
			 */
			private static final int WARNING_LAYER;
			/** 
			 * The layer in which error problem annotations representing are located.
			 */
			private static final int ERROR_LAYER;
			
			static {
				AnnotationPreferenceLookup lookup= EditorsUI.getAnnotationPreferenceLookup();
				TASK_LAYER= computeLayer("org.eclipse.ui.workbench.texteditor.task", lookup); 
				INFO_LAYER= computeLayer("org.eclipse.jdt.ui.info", lookup); 
				WARNING_LAYER= computeLayer("org.eclipse.jdt.ui.warning", lookup); 
				ERROR_LAYER= computeLayer("org.eclipse.jdt.ui.error", lookup); 
			}