Bug 92232 - [content assist] Insert selected proposal on comma
Summary: [content assist] Insert selected proposal on comma
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 11:00 EDT by Christof Marti CLA
Modified: 2023-03-09 17:32 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christof Marti CLA 2005-04-21 11:00:01 EDT
When pressing '.' while the content assist is shown, the selected proposal is
inserted. The same behaviour on ',' would help when filling in parameter lists.
Comment 1 Christof Marti CLA 2005-08-03 12:52:42 EDT
This already works for method proposals but not for local variable proposals.

Invoking Code Assist in the code below, where '|' represents the caret and then
pressing ',' insterts the first proposal:
class Foo {
	void bar(Object foo1, Object foo2) {
		bar(foo1.|);
	}
}

The same steps do not work for the following:
class Foo {
	void bar(Object foo1, Object foo2) {
		bar(f|);
	}
}

Changing from enhancement request to bug report.
Comment 2 Tom Hofmann CLA 2005-08-04 04:26:56 EDT
This makes sense. The difficult part is figuring out whether we are in a
parameter list or not. 

And then, the same should probably work in all comma separated lists:

- constructor call (probably the same as method, as we can't rely on the AST anyway)
- array initializers
- in method definitions, when completing parameter *names* (not types)
Comment 3 Dani Megert CLA 2006-08-23 11:05:40 EDT
*** Bug 154740 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2019-02-09 02:06:38 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Dani Megert CLA 2019-02-09 11:04:25 EST
In 4.11 M1 both cases don't work.
Comment 6 Eclipse Genie CLA 2021-01-30 02:09:28 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2023-03-09 17:32:32 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.