Bug 31253 local rename of constructors should rename class too [code manipulation]
20030206 public class A { A(int y){} } select 'A' in the constructor name- local rename does not change class name works the other way round though - select A in class name and local rename will rename the constructor for you
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LinkedNamesAssistProposal.java
/* (non-Javadoc)
	 * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#apply(org.eclipse.jface.text.ITextViewer, char, int, int)
	 */
	public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
		try {
			ArrayList sameNodes= new ArrayList();
			LinkedNodeFinder finder= new LinkedNodeFinder(fNode.resolveBinding(), sameNodes);
			ASTResolving.findParentCompilationUnit(fNode).accept(finder);
			
			IDocument document= viewer.getDocument();
			LinkedPositionManager manager= new LinkedPositionManager(document);
			
			for (int i= 0; i < sameNodes.size(); i++) {
				ASTNode elem= (ASTNode) sameNodes.get(i);
				manager.addPosition(elem.getStartPosition(), elem.getLength());
			}
			
			LinkedPositionUI editor= new LinkedPositionUI(viewer, manager);
			editor.setInitialOffset(offset);
			editor.setFinalCaretOffset(offset);
			editor.enter();
			
			fSelectedRegion= editor.getSelectedRegion();
		} catch (BadLocationException e) {
		}
	}	
	/*
	 * @see ICompletionProposal#apply(IDocument)
	 */