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 175613 - [68cat] Undo after using alt-insert to add dependency to pom deletes content to end of file
Summary: [68cat] Undo after using alt-insert to add dependency to pom deletes content ...
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: XDM (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 19:07 UTC by neilg
Modified: 2015-09-17 13:16 UTC (History)
1 user (show)

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 neilg 2009-10-28 19:07:25 UTC
[ BUILD # : 200910260201 ]
[ JDK VERSION : 1.6.* ]

Steps to reproduce:

1. Open a maven pom file
2. Press alt-insert and select Dependency
3. Select a dependency
4. Verify the dependency is added to the pom
5. Don't save
6. Press ctrl-z to undo the addition

Expected: the pom is in the initial state 
Actual: everything in the pom after the addtion of the new dependency is deleted
Comment 1 Milos Kleint 2009-10-29 12:02:52 UTC
the xam/xdm framework seems to perform multiple edits to the document when synchronizing the model. A subsequent Undo
shall give you the state of things before the action invokation. Reassigning to xml for evaluation. I don't see a way
for me to influence from maven codebase. BTW this isn't a P2 most probably. Or have you lost some data because of this?
Comment 2 Martin Balin 2015-09-17 13:16:58 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.