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
int offset= position.getOffset();
					int length= position.getLength();
					int end= offset + length;
					if (offset >= eventOffset + eventOldLength) 
						
						
						position.setOffset(offset + deltaLength);
					else if (end <= eventOffset) {
						
						
					} else if (offset <= eventOffset && end >= eventOffset + eventOldLength) {
						
						position.setLength(length + deltaLength);
					} else if (offset < eventOffset) {
						
						int newEnd= eventOffset;
						position.setLength(newEnd - offset);
					} else if (end > eventOffset + eventOldLength) {
						
						
						
						int newOffset= eventOffset + eventNewLength;
						position.setOffset(newOffset);
						position.setLength(end - newOffset);
					} else {
						
						position.delete();
					}
				}
			} catch (BadPositionCategoryException e) {