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 132586 - XML Format always drops you to the bottom of the file
Summary: XML Format always drops you to the bottom of the file
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
: 138873 (view as bug list)
Depends on: 137768
Blocks:
  Show dependency tree
 
Reported: 2008-04-11 01:23 UTC by jcampbell
Modified: 2008-07-02 22:52 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 jcampbell 2008-04-11 01:23:20 UTC
When working in XML files and either hitting Alt+Shift+F or right-clicking and selecting "Format" from the popup window,
the cursor is placed at the bottom of the file (no matter where your cursor started).  

Example: I'm working in the middle of an XML file and I want to do a quick format of the xml file.  I do a ALT+Shift+F
and then I lose my spot because the cursor is forced to the bottom of the file.

Expected results:  After hitting ALT+Shift+F in a XML file, the cursor is returned to the position were it originated.

Other notes:  This worked as expected in NetBeans 6.0.1 (this is a new bug to 6.1)
Comment 1 Samaresh Panda 2008-04-14 15:57:46 UTC
Will try to fix it and if i-team agrees, will try to get this into patch1.
Comment 2 Samaresh Panda 2008-06-02 21:31:58 UTC
*** Issue 135297 has been marked as a duplicate of this issue. ***
Comment 3 Samaresh Panda 2008-06-20 18:24:58 UTC
Fix integrated: http://hg.netbeans.org/main/rev/ba01d800f2ab.
Comment 4 Samaresh Panda 2008-06-20 19:08:25 UTC
Take care of NPE: http://hg.netbeans.org/main/rev/843452b782cd.
Comment 5 tonybeckham 2008-06-26 18:29:18 UTC
Fix Verified

Product Version: NetBeans IDE Dev (Build 200806261320)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
Comment 6 Samaresh Panda 2008-07-02 22:52:27 UTC
*** Issue 138873 has been marked as a duplicate of this issue. ***