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 133239 - No auto unindent after }, CR
Summary: No auto unindent after }, CR
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on: 132764
Blocks:
  Show dependency tree
 
Reported: 2008-04-18 20:03 UTC by Lark Fitzgerald
Modified: 2008-06-20 18: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 Lark Fitzgerald 2008-04-18 20:03:40 UTC
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
plugin: CB 98 2008-04-18_18-33-44.zip
Samples: Trunk 2008-04-18_02-01-55.zip
Platform: 200 (Apr 16, 2008 9:49:22 AM) javafx_sdk-1_0-pre1-windows-i586.zip

the editor should not unindent after }, and a return.  For example:

                FlowPanel {
                    content: [
                        Button {
                            text: "Start"
                            action: 
                                function():Void {
                                    metMod.anim.start();
                                }
                        },   <--- pressing return
                    <brings me here when it should line me up with the } >
                    ]
                }
Comment 1 Rastislav Komara 2008-04-21 11:05:24 UTC
The reformat code feature is required in case of identify wider context of inserted character. Added dependancy
Comment 2 Rastislav Komara 2008-04-22 17:02:10 UTC
update schedule.
Comment 3 Lark Fitzgerald 2008-06-19 15:25:34 UTC
This appears to be fixed in 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 nighly plugin: 269

Frame {
    title: "MyApplication"
    width: 200
    height: 200
    closeAction: function() { java.lang.System.exit( 0 ); }
    visible: true
    
    menus: [  ]
    
    content: FlowPanel {
        content: [
            Button {
                text: "Start"
                action: 
                function():Void {
                }
            }   <----- adding a comma here and pressing return puts you in the correct position under this }
        ]
    }
}
Comment 4 Lark Fitzgerald 2008-06-20 18:52:37 UTC
verified.