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 112887 - REF: cursor doesn't keep it's position during refactioring
Summary: REF: cursor doesn't keep it's position during refactioring
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-15 14:17 UTC by Jana Maleckova
Modified: 2009-12-21 06:11 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 Jana Maleckova 2007-08-15 14:17:23 UTC
Product Version: NetBeans IDE Dev (Build 070815) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
have form with some components 
set cursor on some variable in guarded block
do refactoring - rename for this variable
see, cursor jumps to the end of guarded block
when the same usecase is done in simple java class, cursor always keeps it's position
Comment 1 Tomas Pavek 2007-08-16 10:44:29 UTC
This is because the entire guarded block is replaced (i.e. removed and added again). It happens when you do any change
in the form and switch back to source. See also issue 18350. We could try to reconstruct the cursor position (remember
column/row relatively to the guarded block start).
Comment 2 Quality Engineering 2009-12-21 06:11:19 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team