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
fBracketPainter.setHighlightColor(getColor(MATCHING_BRACKETS_COLOR));
					return;
				}
				
				if (CURRENT_LINE.equals(p)) {
					if (isLineHighlightingEnabled())
						startLineHighlighting();
					else
						stopLineHighlighting();
					return;
				}
				
				if (CURRENT_LINE_COLOR.equals(p)) {
					if (fLinePainter != null) {
						stopLineHighlighting();
						startLineHighlighting();
					}					
					return;
				}
				
				if (PRINT_MARGIN.equals(p)) {
					if (isPrintMarginVisible())
						showPrintMargin();
					else
						hidePrintMargin();
					return;
				}
				
				if (PRINT_MARGIN_COLOR.equals(p)) {
					if (fPrintMarginPainter != null)