Bug 46753 [misc] Typing should not be blocked by background activity
Build 20031111 1. Open an editor 2. Start a CVS background activity (e.g. Synchronize several projects) 3. Start typing in the editor Observe: The whole UI freezes and what you typed is not shown in the editor until the end of the backgroung activity
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); 
			}