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 132194 - } completion does not work right away
Summary: } completion does not work right away
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:
: 132202 132497 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-07 15:02 UTC by Lark Fitzgerald
Modified: 2008-06-11 09:28 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-07 15:02:56 UTC
Product Version: NetBeans IDE Dev (Build 200804010004)
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#312 (2008-04-07_14-26-18.zip)

{ completion is not adding the closing } at first.  If I keep playing with it for a bit it will start working.

Steps:
1. create new project
2. go to end of file and press enter
3. press { and enter

It goes to a new line and indents 4 spaces.  It does not add the trailing }.  Usually when it starts working its after 
I have made modifications to an if/then statement but even that is inconsistent.  Once it starts working, it stays for 
that file but when I create a new project it stops working again and I have to start over.
Comment 1 David Strupl 2008-04-07 15:05:37 UTC
Rasta?
Comment 2 Lark Fitzgerald 2008-04-07 15:55:38 UTC
*** Issue 132202 has been marked as a duplicate of this issue. ***
Comment 3 Rastislav Komara 2008-04-09 15:42:07 UTC
I performed several updates to fix this issue. I took behavior of Java bracket completion as spec. If you are not
satisfied please reopen this issue.
Comment 4 Alexandr Scherbatiy 2008-04-10 11:13:22 UTC
*** Issue 132497 has been marked as a duplicate of this issue. ***
Comment 5 Lark Fitzgerald 2008-04-11 15:18:50 UTC
I just installed build: Plugin: CB#358 (2008-04-11_11-55-20.zip) and I still see this.  Here's what I did
1. Uninstalled old plugin (restart)
2. installed new plugin (restart)
3. create new fx project (Main.fx opened automatically)
4. go to end of file and select //Place code here
5. type { and press return

I do not get the closing }.  I tried with Frame { and it still doesn't give me the closing bracket.  I'm running on:
Product Version: NetBeans IDE Dev (Build 200804091204)
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)
Comment 6 Alexandr Scherbatiy 2008-04-15 09:13:09 UTC
The '}' completion does not work if I do not use import statement:
-----------------------------------
Frame{
-----------------------------------

And it works if I use import statement:
-----------------------------------
import javafx.ui.*;
Frame{}
-----------------------------------


Comment 7 Lark Fitzgerald 2008-06-10 20:58:08 UTC
I have not seen this issue in a while.  It is not reproducible with or without import statements. Closing.
Verified using:
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 8 Alexandr Scherbatiy 2008-06-11 09:28:35 UTC
verified