Bug 82167 [typing] Smart Typing Preferences: Plural of "parenthesis" is "parentheses"
Smart Typing Preferences says: Typing > Automatically close... - Strings - Brackets and parenthesis' - Braces [..] The correct plural of "parenthesis" is "parentheses". I would find it more convenient, if the characters of the bracket classes would also be part of the preference names, e.g.: - (Parentheses), [square] and <angular> brackets - {Braces} or - Parentheses(), square[] and angular<> brackets - Braces{}
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (!IDocument.DEFAULT_CONTENT_TYPE.equals(partition.getType()))
					return;
				
				if (!validateEditorInputState())
					return;
				
				final char character= event.character;
				final char closingCharacter= getPeerCharacter(character);
				final StringBuffer buffer= new StringBuffer();
				buffer.append(character);
				buffer.append(closingCharacter);
				
				document.replace(offset, length, buffer.toString());
				
				
				BracketLevel level= new BracketLevel();
				fBracketLevelStack.push(level);
				
				LinkedPositionGroup group= new LinkedPositionGroup(); 
				group.addPosition(new LinkedPosition(document, offset + 1, 0, LinkedPositionGroup.NO_STOP));
				
				LinkedModeModel model= new LinkedModeModel();
				model.addLinkingListener(this);
				model.addGroup(group);
				model.forceInstall();
				
				level.fOffset= offset;
				level.fLength= 2;