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 136112 - use of sout template in if sends if and closing } to far right
Summary: use of sout template in if sends if and closing } to far right
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on: 132764
Blocks:
  Show dependency tree
 
Reported: 2008-05-29 21:30 UTC by Lark Fitzgerald
Modified: 2008-06-13 14: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 Lark Fitzgerald 2008-05-29 21:30:30 UTC
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

1. open editor and type
var condition1 = false;
var condition2 = true;

if (condition1) {
2. press enter to get closing }
3. now type sout
4. press TAB

The if and closing } get reformated to the far right.
Comment 1 Lark Fitzgerald 2008-05-29 21:43:31 UTC
note: This happens for pretty much all nested templates, like using at inside of a class declaration.
Comment 2 David Strupl 2008-05-30 08:10:45 UTC
Sounds a bit like a formatting issue, reassigning to our formatting guru.
Comment 3 Rastislav Komara 2008-06-02 08:27:18 UTC
I know about this issue. It is caused by unfinished reformat feature. Adding dependency @ #132764
Comment 4 Lark Fitzgerald 2008-06-10 21:11:02 UTC
This issue is no longer reproducible using build:
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
fx NB61 cb plugin: 260
Comment 5 Lark Fitzgerald 2008-06-13 14:49:25 UTC
verified again using nightly build 60.