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 192584 - [70cat][xml] Code completion for XML enumerations does not add trailing double quotation marks.
Summary: [70cat][xml] Code completion for XML enumerations does not add trailing doubl...
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks: 150722
  Show dependency tree
 
Reported: 2010-11-28 06:16 UTC by esmithbss
Modified: 2015-09-17 13:21 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 esmithbss 2010-11-28 06:16:10 UTC
Product Version = NetBeans IDE Dev (Build 201011250001)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

When editing an XML file, if the user is entering a value with an enumeration (ex: use attribute), if the code completion is started for the attribute name ("use") by hitting the <alt><space> combination, then the name, the equals sign, and the first double quote are added, but after the enumeration is selected, the ending double quotation is not added.

Steps to reproduce while editing an XML/XSD file

1) Within a tag that can accept an attribute, press <alt><space> to start code completion.
2) Select an item with an enumeration of values (like the aforementioned "use" attribute).
3) Select an enumeration value
Comment 1 esmithbss 2010-11-28 06:29:36 UTC
Correction for steps to reproduce while editing an XML/XSD file

1) Within a tag that can accept an attribute, type in the name for which an enumeration has been defined.  Include the =" after the name.
2) Pause for the code completion window to open.
3) Select an enumeration value and hit <Enter>

This will show the code completion window automatically opening, and after a selection, not completing the value for which data entry was performed.

It is possible that the best solution for this is to add the double quote marks indicated by issue #192585.
Comment 2 Martin Balin 2015-09-17 13:21:20 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.