Bug 4367 Argument hover doesn't work for nested method calls
- enter the following code public class A { public int foo(int x, int y) { return 1; } public void bar() { } } - now enter public void bar() { foo<= code assist } - select foo(int x, int y) - observe: argument hover is correct - now type foo again - open code assist - select foo(...) - type 10, 10 and cursor left - argument hover disappears although outer method call isn't finihed yet.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
if (types.length == 0 || types[0].getSourceRange().getOffset() > fReplacementOffset) {
					
					return;
				}
				String[] prefOrder= ImportOrganizePreferencePage.getImportOrderPreference();
				int threshold= ImportOrganizePreferencePage.getImportNumberThreshold();					
				ImportsStructure impStructure= new ImportsStructure(cu, prefOrder, threshold, true);
				impStructure.addImport(fImportDeclaration.getElementName());
				
				impStructure.create(false, null);
			} catch (CoreException e) {
				JavaPlugin.log(e);
			}
		}
	}
	
	/*
	 * @see ICompletionProposalExtension#apply(IDocument, char)
	 */
	public void apply(IDocument document, char trigger) {
		try {
			
			if (trigger == (char) 0) {
				document.replace(fReplacementOffset, fReplacementLength, fReplacementString);
			} else {
				StringBuffer buffer= new StringBuffer(fReplacementString);
				
				if ((fReplacementLength < buffer.length() && buffer.charAt(fReplacementLength) != trigger)) {
					buffer.insert(fCursorPosition, trigger);
					++fCursorPosition;