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
public void dispose() {
				if (fMatcher != null) {
					fMatcher.dispose();
					fMatcher= null;
				}
				
				fTextWidget= null;
				fColor= null;
			}
			
			public void run() {
				
				int offset= fSourceViewer.getSelectedRange().x;
				IRegion pair= fMatcher.match(fSourceViewer.getDocument(), offset);
				
				if (pair == null) {
					removeStyles();
				} else {
					
					if (pair.getOffset() != fBracketPosition.getOffset() || pair.getLength() != fBracketPosition.getLength())
						removeStyles();
						
					fBracketPosition.offset= pair.getOffset();
					fBracketPosition.length= pair.getLength();
					fBracketPosition.isDeleted= false;
					
					applyStyles();
				}
			}