Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 415807 - [content assist] Auto-Activate should also show partial matches
Summary: [content assist] Auto-Activate should also show partial matches
Status: CLOSED DUPLICATE of bug 350000
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-23 23:07 EDT by Matthew Weier CLA
Modified: 2015-02-26 10:56 EST (History)
4 users (show)

See Also:


Attachments
A visual mockup of the enhancement. (33.55 KB, image/png)
2013-08-23 23:07 EDT, Matthew Weier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Weier CLA 2013-08-23 23:07:30 EDT
Created attachment 234724 [details]
A visual mockup of the enhancement.

When the auto-activation dialog is activated (by default by typing the "." character) it would be nice if not only all options which start with the next few characters typed would show-up but also those which contain the "string" typed after the "." character.

If I was designing it, I'd have 2 lists side-by-side.
By default focus would be given to the original (left) list but by pressing a command key and left/right, the new list would be given focus.
The background color of the 2 lists could be changed to make it obviously distinct.


***********
* Example *
***********
If the developer types:
   String aStr = "just a test";
   aStr.index

The auto-activation would show the current list that gets shown along with another list next to it containing the options which contain the string "index".

 ------------------------------------------------------------------------------- --------------------------------------------------------------
 | indexOf(int ch)                    | lastIndexOf(int ch)                    | | Details of the item selected from the left will show here. |
 | indexOf(int ch, int fromIndex)     | lastIndexOf(int ch, int fromIndex)     | |                                                            |
 | indexOf(String str)                | lastIndexOf(String str)                | |                                                            |
 | indexOf(String str, int fromIndex) | lastIndexOf(String str, int fromIndex) | |                                                            |
 ------------------------------------------------------------------------------- |                                                            |
                                                                                 |                                                            |
                                                                                 --------------------------------------------------------------
Comment 1 Matthew Weier CLA 2013-08-23 23:10:11 EDT
The ascii drawing of the auto-activation is too wide for the space allowed in bugzilla.
Please see the attached mockup image instead.
Comment 2 Matthew Davis CLA 2013-08-26 22:14:12 EDT
Hi, might check the product/component on this bug.  I think you mistakenly submitted this to the STEM product.
Comment 3 Matthew Weier CLA 2013-08-27 17:42:52 EDT
Sorry for the misunderstanding.

Do you know what is the correct Product for an Eclipse IDE bug/request?
I see an option of gEclipse, Efxclipse and EclipseLink.

I don't know why it isn't more clear :(
Comment 4 Matthew Weier CLA 2013-08-27 17:45:23 EDT
A little Googling showed me the answer... JDT.

Sorry for the confusion.


(In reply to comment #3)
> Sorry for the misunderstanding.
> 
> Do you know what is the correct Product for an Eclipse IDE bug/request?
> I see an option of gEclipse, Efxclipse and EclipseLink.
> 
> I don't know why it isn't more clear :(
Comment 5 Matthew Davis CLA 2013-08-27 18:25:56 EDT
No worries.  Setting the assignee inbox so JDT sees this.
Comment 6 Martin Mathew CLA 2013-08-28 00:01:52 EDT

*** This bug has been marked as a duplicate of bug 350000 ***
Comment 7 Marcel Bruch CLA 2013-08-28 01:21:28 EDT
Just to clarify: There is a completion engine that does what you describe. It's called "subwords completion" and can be installed from [1]. You may also have a look at this blog post [2].

[1] http://eclipse.org/recommenders/download/
[2] http://code-recommenders.blogspot.no/2012/07/code-recommenders-10-code-completion-on.html