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 186509 - Code in the empty file should be formatted in the same way as in the run function
Summary: Code in the empty file should be formatted in the same way as in the run func...
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-05-21 13:32 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:52 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-05-21 13:32:30 UTC
netbeans-trunk-nightly-201005210001-javafx-windows.exe 

Steps to reproduce:

- Format the code
-----------------------------------
var a = 10;

var b = 20;


for (i in [0..3]) i * i;
-----------------------------------

The result is:
-----------------------------------
var a = 10;
var b = 20;

for (i in [0..3]) i * i;
-----------------------------------

It is different than formatting the run method:
-----------------------------------
function run() {
    var a = 10;

    var b = 20;

    for (i in [0..3]) i * i;
} 
-----------------------------------


In JavaFX code in the empty file treats as the code in the run function.
Comment 1 Anton Chechel 2010-06-24 15:00:44 UTC
Task: introduce "keep blank lines" option in settings.
Comment 2 Martin Ryzl 2010-10-21 11:56:25 UTC
.
Comment 3 David Strupl 2011-05-16 13:52:09 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.