Bug 5418 bracket marker stays in editor
private void showDebugSourcePage(String typeName) { if (dialog.open() == dialog.OK) { } 1. set the cursor after the opening bracket (after dialog.OK) 2. press enter 3. The bracket box includes all characters insterted by the auto indenter
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
document.removePositionUpdater(fPositionUpdater);
						document.removePositionCategory(fCategory);			
					} catch (BadPositionCategoryException x) {
						
					}
					fDocument= null;
				}
			}
			
			/*
			 * @see ITextInputListener#inputDocumentAboutToBeChanged(IDocument, IDocument)
			 */
			public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) {
				if (oldInput != null)
					stop(oldInput);
			}
			
			/*
			 * @see ITextInputListener#inputDocumentChanged(IDocument, IDocument)
			 */
			public void inputDocumentChanged(IDocument oldInput, IDocument newInput) {
				if (newInput != null)
					start(newInput);
			}
		};
		
		private Position fBracketPosition= new Position(0, 0);
		private BracketPositionManager fManager= new BracketPositionManager();
		
		private ISourceViewer fSourceViewer;