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.

Bug 100210 - smart completion and normal completion
Summary: smart completion and normal completion
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-06 13:11 UTC by poppyer
Modified: 2007-04-13 16:24 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description poppyer 2007-04-06 13:11:32 UTC
In 6.0M8, smart completion and normal completion are merged, this somehow raise
anoth issue.

For example, if I type: "String s = new ", then smart-completion will
automatically add "String s = new String(", because there is only one smart
candidate. But now with M8, smart completion are merged in to normal completion,
it will pop-up a whole list.(the pop-up is annoying because it needs a delay,
swing problem).

So my suggest is either:

1) Adding a shortcut/freature to "add smart completion with the first
candidate", just like google's "I am feeling lucky"

or

2) Adding a shortcut/feature to "add next completion" and behaving like "Insert
next match world", which means we can use the shortcut to cycle through the
completion candidates.
Comment 1 Vitezslav Stejskal 2007-04-10 01:57:29 UTC
I personally don't think we want more shortcuts for code completion. IIRC we
used to have three shortcuts and managed to bring their number down to one. The
reason for not having different shortcuts is that when users invoke CC they
don't know and don't want to think about the context, where CC was invoked, in
order to guess what shortcut they should use to get the right results. The
current (M8) state of CC was implemented as a response to the issue #95877.

I am not sure how big the delay in showing the CC's popup window is on your
machine, neither I am sure that it is (only) a swing issue. We might need to do
some measurements and classify this as a performance issue.
Comment 2 Miloslav Metelka 2007-04-11 12:34:54 UTC
Since this is highly java-specific reassigning to java for further evaluation.
Comment 3 poppyer 2007-04-12 11:10:00 UTC
hi, in case that we don't want to add another shortcut
I would like the method 2, i.e. cycling through the candidates. and adding an
choise in options to select whether using pop-up or cycling.

pop-up is not extremely slow in current swing, but does really affect the coding
quite badly. and cyclying is more nature to emacs-user.
Comment 4 Miloslav Metelka 2007-04-13 16:24:12 UTC
I guess you can still do Ctrl+Alt+SPACE instead of two Ctrl+SPACE presses. It's
just not advertised anywhere AFAIK which should IMHO be improved.