Bug 50912 - [content assist] completion chars could be smarter
Summary: [content assist] completion chars could be smarter
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-29 16:16 EST by ricky CLA
Modified: 2004-01-30 06:48 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ricky CLA 2004-01-29 16:16:39 EST
I added " " to the code assist  to the Auto activation triggers, here's what 
happends:
basically, i want to type:   String aVariable = "something";

1. type:     String<space>
2. assist:     string - String
3. type:     <spacebar>;   // line is now:   String string
4. assist:     string - String
5. type:     =             // line becomes:   String string string=


problems:
1. at step 4:   code assist should not have "string - String" as sugestion 
anymore (not a big problem tho)
2. at step 5:    when type in "=" key, it inputs "string=" instead of a 
single "=".   In other words, "=" key triggers GetTheHighlightedSuggestion 
event.
Comment 1 Dani Megert CLA 2004-01-30 06:47:12 EST
The content assist has some completion characters which insert the current
proposal plus the character you hit. This is the case for "=". The problem is
that content assist opens in the first place, which of course is what you asked for.

You first have to dismiss the content assit (Esc).
Comment 2 Dani Megert CLA 2004-01-30 06:48:32 EST
we could be smarter, e.g. when there's
[type decl] field/var and '=' is press it makes no sense to insert another field
or temp.
Comment 3 Dani Megert CLA 2004-01-30 06:48:59 EST
I20040129