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 168532 - Some palette items are not properly formatted
Summary: Some palette items are not properly formatted
Status: VERIFIED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-07-14 10:25 UTC by Alexandr Scherbatiy
Modified: 2009-12-18 04:47 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 2009-07-14 10:25:41 UTC
Steps to reproduce:
- Drag an drop the Basic Shapes-> Text item to the editor
--------------------------------------------
import javafx.scene.text.Text;
import javafx.scene.text.Font;

Text {
        font : Font {
                size: 24
        }
        x: 10, y: 30
        content: "HelloWorld"
}
--------------------------------------------

1. There is a space between font property and the colon
        font : Font {

2. There are two tabs before attributes instead of one:

Text {
        font : Font {
                size: 24
        }
        x: 10, y: 30
        content: "HelloWorld"
}

Should be:
   
Text {
    font: Font {
        size: 24
    }
    x: 10, y: 30
    content: "HelloWorld"
}



The same is for other palette items
Comment 1 Anton Chechel 2009-11-23 08:38:09 UTC
User should invoke reformat action after dropping palette item I suppose.
Or we can invoke it automatically.
But we can't preformat palette items for all platforms, because they could have different tab size for example.
Comment 2 Alexandr Scherbatiy 2009-12-18 04:47:06 UTC
verified.

see also issue 178667 Format code after dropping an item from palette