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 129646 - Incorrect document updation when using schema based code completion
Summary: Incorrect document updation when using schema based code completion
Status: RESOLVED DUPLICATE of bug 125975
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-10 12:10 UTC by Rohan Ranade
Modified: 2008-05-27 21:17 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 Rohan Ranade 2008-03-10 12:10:21 UTC
I am using schema based code completion in a spring xml config file. I invoke code completion as follows (| denotes
location of caret):

<be|an id="sdsd" class="org.netbeans.spring.demo.Person" init-method="getName" factory-method="createInstance">
    <property name="father.father.name" ref="indexController"></property>
</bean>

If I accept the completion item that is shown ("bean"), the text becomes:

beanan id="sdsd" class="org.netbeans.spring.demo.Person" init-method="getName" factory-method="createInstance">
    <property name="father.father.name" ref="indexController"></property>
</bean>

the expected output is:
<beanan id="sdsd" class="org.netbeans.spring.demo.Person" init-method="getName" factory-method="createInstance">
    <property name="father.father.name" ref="indexController"></property>
</bean>

since completion should maintain the prefix and not care about the characters after the caret. The same thing happens
for attributes as well.
Comment 1 Samaresh Panda 2008-03-25 01:21:54 UTC
Will not be able to work on it for 6.1.
Comment 2 Samaresh Panda 2008-05-27 21:17:24 UTC

*** This issue has been marked as a duplicate of 125975 ***