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 74574 - [cc] Whole item completed no matter some chars are already typed
Summary: [cc] Whole item completed no matter some chars are already typed
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 74643 74972 (view as bug list)
Depends on:
Blocks: 75143
  Show dependency tree
 
Reported: 2006-04-07 12:16 UTC by Jiri Kovalsky
Modified: 2007-09-25 01:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2006-04-07 12:16:34 UTC
Development build #200604070200 of NetBeans 5.5 with new XML editor completion API
Windows XP, JDK 1.5.0_05 build #05

Description:
============
New code completion API is helpful only when desired item is selected right in
the beginning. If user types a character to reduce the list of suggestions and
then presses Enter, it will simply append selected item after the character.
It's very annoying as one has to then manually correct result of this feature.

Steps to reproduce:
===================
1. Create new sample web application project.
2. Create new XML file in this project.
3. Insert the following code at line 2:

<!DOCTYPE root [
    <!ENTITY boolean "true|false">
]>

4. Type '&' character at line 12 between <root> elements.
5. Code completion shows up. Type 'b' character to reduce list of suggestions.
6. Only "boolean" will be suggested. Press Enter to complete it.
7. The statement gets expanded to &bboolean;
Comment 1 Jiri Kovalsky 2006-04-10 08:15:27 UTC
*** Issue 74643 has been marked as a duplicate of this issue. ***
Comment 2 Jiri Kovalsky 2006-04-13 09:51:33 UTC
*** Issue 74972 has been marked as a duplicate of this issue. ***
Comment 3 Marek Fukala 2006-04-20 15:58:24 UTC
fixed

Checking in XMLCompletionQuery.java;
/cvs/xml/text-edit/src/org/netbeans/modules/xml/text/completion/XMLCompletionQuery.java,v
 <--  XMLCompletionQuery.java
new revision: 1.37.54.1.2.3; previous revision: 1.37.54.1.2.2
done
Comment 4 Jiri Kovalsky 2006-04-21 09:42:56 UTC
Verified in development build #200604210200 of NetBeans 5.5.