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 122854 - [Code Completion] Square brackets are not correct
Summary: [Code Completion] Square brackets are not correct
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-27 14:12 UTC by Alexandr Scherbatiy
Modified: 2008-10-23 10:07 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 Alexandr Scherbatiy 2007-11-27 14:12:10 UTC
Steps to reproduce:
- Create a JavaFX Script file
- Copy the following code to the Editor
---------------------------------------------
import javafx.ui.*;


Frame{
    content: FlowPanel{
        cont
    }    
}
---------------------------------------------
- Got to the 'cont' string and press <Ctr+Space> to invoke code completion

The following code will be written:
---------------------------------------------
Frame{
    content: FlowPanel{
        content: 
        []
    }    
}
---------------------------------------------

The square brackets are written on the next line, not after the attribute : 'content: []'
Comment 1 Lark Fitzgerald 2008-10-13 20:45:30 UTC
Updated source for this would be:

import javafx.stage.Stage;
import javafx.scene.Scene;


Stage {
    width: 200
    height: 200
    scene: Scene {
        cont
    }
}

pressing ctrl+space after cont completes the line with content:
It no longer adds the brackets which is a bug since you can't really do anything without them.
Comment 2 David Strupl 2008-10-22 20:46:13 UTC
Fixed by 1609:d44678b04911
Comment 3 Alexandr Scherbatiy 2008-10-23 10:07:59 UTC
verified in 2008-10-23_03-01-09.zip