Summary: | for loop completion should propose all the possible applicable variables | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Pascal Rapicault <pascal> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | daniel_megert, markus.kell.r, stephan.herrmann |
Version: | 4.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Pascal Rapicault
2015-09-23 11:00:12 EDT
Mh, when I select the foreach loop template in the context where several iterable variables are in scope, I just tab to the variable and select from a list of offered choices. Are you not seeing that list when to tab to it? Well you just showed me a new feature :) But I think it is not really user friendly: - You have to complete (ok), then hit tab twice before the list gets shown. Just this aspect is not really intuitive because once the code got generated it is not clear how you can get it to change (even though you have the boxes surrounding the main sections) and even less so that you can go to the list. IMO, it would be a better user experience if once the content of template has been filed in the drop down with the list of possible types was to be shown. This way it is clear to the user that it is possible. (In reply to Pascal Rapicault from comment #2) > Well you just showed me a new feature :) My pleasure! But: really? You have been around some time ... :) > But I think it is not really user friendly: > - You have to complete (ok), then hit tab twice before the list gets shown. > Just this aspect is not really intuitive because once the code got generated > it is not clear how you can get it to change (even though you have the boxes > surrounding the main sections) and even less so that you can go to the list. If that feature is not discovered by users we seem to have a fundamental problem, because that's the key concept for all "linked" proposals (all those that have little boxes around text). > IMO, it would be a better user experience if once the content of template > has been filed in the drop down with the list of possible types was to be > shown. This way it is clear to the user that it is possible. The point is: we have several locations where the user can select or edit the proposed text before the proposal is finalized. I could imagine, however, to improve this by checking if one of the edit positions has a list to offer, and if so, select this position first. Dani, Markus, would you support such change? If so, should it apply to all linked proposals? I guess we cannot make it specific to "for" loops, because it's just a regular template proposal, right? It *might* annoy seasoned users, who blindly start typing once linked mode has been entered: they will be surprised that edits go into a different position than they did previously. |