Bug 25370 Linked Mode: Want to define where to focus
20021022 I added a new feature that starts the linked mode on all usages of a variable. e.g. int i; i= 1; i++; would link all 3 occurrences of i, so when edited, all 3 references are changed simultanously. Problem is that the liked mode does not allow me to set the focus (where to edit) to e.g. the 'i' in 'i++'. The linked mode only allows to edit the top most linked position ('int i'). The feature can be invoked on any reference. Jumping to the top not so ideal.
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.setFinalCaretOffset(offset);
			editor.enter();
			
			fSelectedRegion= editor.getSelectedRegion();
		} catch (BadLocationException e) {
		}
	}	
	/*
	 * @see ICompletionProposal#apply(IDocument)
	 */