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 181288

Summary: [69cat] Ant script code completion doesn't replace already typed characters
Product: xml Reporter: Michel Graciano <hmichel>
Component: Text-EditAssignee: issues@xml <issues>
Status: RESOLVED DUPLICATE    
Severity: normal CC: misterm
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Michel Graciano 2010-02-26 10:26:49 UTC
Steps to reproduce:
1. Create a new ant file with the follow [1] content;
2. Put your caret just after '${tes' and type Ctrl + Space (CC shortcut);
3. You will see that property is inserted but the string '${tes' is still present [2] when it should be replaced or removed.
I am not sure if it is the correct Product/Component about ant code completion.

[1]
<?xml version="1.0" encoding="UTF-8"?>
<project name="changeme" default="all" basedir=".">
   <target name="all">
      <property name="test.property" value=""/>
      <mkdir dir="${tes"/>
   </target>
</project>

[2] <?xml version="1.0" encoding="UTF-8"?>
<project name="changeme" default="all" basedir=".">
   <target name="all">
      <property name="test.property" value=""/>
      <mkdir dir="${test.property}${tes"/>
   </target>
</project>
Comment 1 Michel Graciano 2010-04-08 16:08:29 UTC

*** This bug has been marked as a duplicate of bug 173691 ***