Bug 26314 Goto Matching Bracket bug with selection
20021113 1. In this code action.setChecked(elements[i].equals(fHierarchyView.getInputElement())); select the last bracket with a selection of length 1. 2. press ctrl + shift + P 3. wrong bracket is matched
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
info= new AnnotationInfo();
		info.fColorPreference= BOOKMARK_INDICATION_COLOR;
		info.fOverviewRulerPreference=  BOOKMARK_INDICATION_IN_OVERVIEW_RULER;
		info.fEditorPreference=  BOOKMARK_INDICATION;
		ANNOTATION_MAP.put(AnnotationType.BOOKMARK, info);
		
		info= new AnnotationInfo();
		info.fColorPreference= SEARCH_RESULT_INDICATION_COLOR;
		info.fOverviewRulerPreference=  SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER;
		info.fEditorPreference=  SEARCH_RESULT_INDICATION;
		ANNOTATION_MAP.put(AnnotationType.SEARCH_RESULT, info);
		
		info= new AnnotationInfo();
		info.fColorPreference= UNKNOWN_INDICATION_COLOR;
		info.fOverviewRulerPreference=  UNKNOWN_INDICATION_IN_OVERVIEW_RULER;
		info.fEditorPreference=  UNKNOWN_INDICATION;
		ANNOTATION_MAP.put(AnnotationType.UNKNOWN, info);
	};
	
	private final static AnnotationType[] ANNOTATION_LAYERS= new AnnotationType[] {
		AnnotationType.UNKNOWN,
		AnnotationType.BOOKMARK,
		AnnotationType.TASK,
		AnnotationType.SEARCH_RESULT,
		AnnotationType.WARNING,
		AnnotationType.ERROR
	};