Community
Participate
Working Groups
Currently the var postfix template suggest "name" for the variable. Maybe this can be adjusted to the use the name as Ctrl+2, L? Postfix: List<MWindowElement> name = stack.getChildren(); Ctrl+2, L: List<MWindowElement> children = stack.getChildren();
This actually ends up using NameResolver for the name, which delegates to StubUtility.getVariableNameSuggestions(..), which takes 'stack.getChildren()' and ends up suggesting 'name'. Would be interesting to see how this varies from 'Assign to local variable'.
New Gerrit change created: https://git.eclipse.org/r/162579
Gerrit change https://git.eclipse.org/r/162579 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=5cafe38e2be9895b37475e0b0bec0efa9d4fb3db
Cooool. Thanks, Roland.
Verified in Eclipse SDK Version: 2020-06 (4.16) Build id: I20200515-1930 OS: Linux, v.5.4.0-29-generic, x86_64 / gtk 3.24.18, WebKit 2.28.2 Java version: 1.8.0_252