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 249313 - XMLEditor suggest end-tag when enterin text in a property value
Summary: XMLEditor suggest end-tag when enterin text in a property value
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 08:42 UTC by akobberup
Modified: 2015-05-13 14:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (2.90 KB, image/png)
2014-12-12 08:42 UTC, akobberup
Details
Screenshot #2 (10.37 KB, image/png)
2014-12-12 09:25 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2014-12-12 08:42:42 UTC
Created attachment 151065 [details]
screenshot

The XML Editor is pretty aggressive insisting that an end tag is inserted, even if i am editing a text attribute on an node.
As i use code templates in my xml, and thus often hit enter while editing an attribute, a close tag is inserted inside the attribute value text.
It makes sense that a close / end tag is inserted, but it should not be suggested when editing an attribute.

Product Version: NetBeans IDE Dev (Build 201412090001)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 8 version 6.2 running on amd64; Cp1252; da_DK (nb)
Comment 1 akobberup 2014-12-12 09:25:33 UTC
Created attachment 151066 [details]
Screenshot #2

The issue actually is not only when editing a property. 
In the screenshot example the editor start suggesting that i should insert a close-tag for the parent-node to the one i am typing - even thou the parent node is closed correctly below.
Comment 2 Svata Dedic 2015-05-13 14:02:50 UTC
Can't reproduce on a dev build; when invoking CC after tag name (without >), nothing is offered.
Could you please provide exact files + what exact plugin/version do you  use for GWT development ?
Comment 3 akobberup 2015-05-13 14:23:27 UTC
I just tried again, and as you i can no longer reproduce the issue. 

For the record i do not use any plugin for gwt development - so the issue were in the general xml editor.

Thanks for looking into this.