This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Variable remains selected after accepting instant rename | ||
---|---|---|---|
Product: | java | Reporter: | cezariusz <cezariusz> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
Eclipse placeholders after assign to variable
After accepting variable name After accepting variable type |
Description
cezariusz
2015-04-28 15:34:19 UTC
Created attachment 153438 [details]
Eclipse placeholders after assign to variable
Created attachment 153439 [details]
After accepting variable name
Created attachment 153440 [details]
After accepting variable type
Note that I can cycle through all 3 placeholders using Tab, even when I'm at the end of the line.
I think the behavior should be similar to CC after accepting a method call. For example: public void demo() { String s = "1010"; int radix = 2; int val = Integer.parse| } The cursor is at the "|" position. Call CC and select two parameter variant of parseInt. You will get: public void demo() { String s = "1010"; int radix = 2; int val = Integer.parseInt(s, radix) } The first parameter "s" will be selected and surrounded with a border. You can cycle through both parameters with Tab - that's nice. Too bad both parameters aren't surrounded with a border to emphasize possible cycling. After accepting both parameters with Enter the cursor jumps to the end of line - and the same should happen after accepting variable name for the "Assign Return Value To New Variable" action. I'll try this. Possibly could be applied on other hints, too. |