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 196384 - Cursor in import section after entering "Surround Statement with try-catch" hint
Summary: Cursor in import section after entering "Surround Statement with try-catch" hint
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-03-07 07:52 UTC by Jaromir Uhrik
Modified: 2011-03-08 05:49 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 Jaromir Uhrik 2011-03-07 07:52:57 UTC

    
Comment 1 Jaromir Uhrik 2011-03-07 07:59:12 UTC
Product Version: NetBeans Platform Dev (Build 201103040000)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (test)

Steps to reproduce:
-create new j2se project
-type following line to the main method of the main class:
FileReader fr = new FileReader("");
-go with the cursor to that line
-push alt-enter and enter the "Add import for java.io.FileReader"
-push again alt-enter and select "Surround Statement with try-catch"
-->> Cursor appears in import section which is annoying. This used to work properly in NB6.9 - adding the "REGRESSION" kw.
Comment 2 Jan Lahoda 2011-03-07 08:56:09 UTC
Oops:
http://hg.netbeans.org/jet-main/rev/9444eedb9ef4
Comment 3 Quality Engineering 2011-03-08 05:49:30 UTC
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9444eedb9ef4
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #196384: Utilities.commitAndComputeChangeInfo shouldn't move the caret when a tag is specified, but no tree is marked with the tag.