Bug 82173 [5.0][typing] Angle Bracket<> auto closing should work in more situations
I20041221-0800 Angular Bracket auto closing does not work for a field type. In this example: void m() { HashMap hm= new HashMap(); ... ... an opening bracket < is - automatically closed when inserted between HashMap and () - not automatically closed when inserted between HashMap and hm. It should be closed in both cases.
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) {