Closed vazexqi closed 13 years ago
This is probably because of how the QuickAssist processes the reference. We suspect that when we invoke it, it tries to resolve the binding for the variable and passes that instead to InlineTempRefactoring. Either variable (i=0 or i in the System.out.println) is a valid argument to the InlineTempRefactoring so it would work. But the selection does not faithfully reflect what the user has selected.
Eclipse doesn't capture the selection information correctly as reported in a comment of issue #146 . However, CodingSpectator now captures the selection information correctly perhaps since we switched to ITypeRoot from the global store (see issue #220).
Move the cursor to the position just before variable 'i' in the System.out.println line. Eclipse captures the following information erroneously (all are related to one another):