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
public String fColorPreference;
		public String fOverviewRulerPreference;
		public String fEditorPreference;
	};
	
	private final static Map ANNOTATION_MAP;
	static {
		
		AnnotationInfo info;
		ANNOTATION_MAP= new HashMap();
		info= new AnnotationInfo();
		info.fColorPreference= TASK_INDICATION_COLOR;
		info.fOverviewRulerPreference= TASK_INDICATION_IN_OVERVIEW_RULER;
		info.fEditorPreference= TASK_INDICATION;
		ANNOTATION_MAP.put(AnnotationType.TASK, info);
		
		info= new AnnotationInfo();
		info.fColorPreference= ERROR_INDICATION_COLOR;
		info.fOverviewRulerPreference= ERROR_INDICATION_IN_OVERVIEW_RULER;
		info.fEditorPreference= ERROR_INDICATION;
		ANNOTATION_MAP.put(AnnotationType.ERROR, info);
		
		info= new AnnotationInfo();
		info.fColorPreference= WARNING_INDICATION_COLOR;
		info.fOverviewRulerPreference= WARNING_INDICATION_IN_OVERVIEW_RULER;
		info.fEditorPreference= WARNING_INDICATION;
		ANNOTATION_MAP.put(AnnotationType.WARNING, info);