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/text/java/JavaCodeScanner.java
rules.add(new WhitespaceRule(new JavaWhitespaceDetector()));
		
		
		WordRule wordRule= new WordRule(new JavaWordDetector(), getDefaultReturnToken());
		for (int i=0; i<fgKeywords.length; i++)
			wordRule.addWord(fgKeywords[i], fKeyword);
		for (int i=0; i<fgTypes.length; i++)
			wordRule.addWord(fgTypes[i], fType);
		for (int i=0; i<fgConstants.length; i++)
			wordRule.addWord(fgConstants[i], fType);
		rules.add(wordRule);
		
		IRule[] result= new IRule[rules.size()];
		rules.toArray(result);
		setRules(result);
	}
	
	public void colorManagerChanged() {
		
		IToken token= getDefaultReturnToken();
		if (token instanceof Token) 
			((Token) token).setData(new TextAttribute(fColorManager.getColor(IJavaColorConstants.JAVA_DEFAULT)));
		
		fKeyword.setData(new TextAttribute(fColorManager.getColor(IJavaColorConstants.JAVA_KEYWORD)));
		fType.setData(new TextAttribute(fColorManager.getColor(IJavaColorConstants.JAVA_TYPE)));
		fString.setData(new TextAttribute(fColorManager.getColor(IJavaColorConstants.JAVA_STRING)));
		fComment.setData(new TextAttribute(fColorManager.getColor(IJavaColorConstants.JAVA_SINGLE_LINE_COMMENT)));
	}
}