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 177196

Summary: Invoke format action after d'n'd palette item
Product: javafx Reporter: Lukas Hasik <lhasik>
Component: EditorAssignee: Adam Sotona <asotona>
Status: RESOLVED WONTFIX    
Severity: normal CC: goodsforyou, javydreamercsw, sunflower
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173487    

Description Lukas Hasik 2009-11-19 06:36:45 UTC
-create new javafx application with main class

-you  will have a code like
------------
Stage {
    title: "Application title"
    scene: Scene {
        width: 250
        height: 80
        content: [
            Text {
                font : Font {
                    size : 16
                }
                x: 10
                y: 30
                content: "Application content"
            }
        ]
    }
}
--------


- put cursor at the end of "content" line and press Enter 
-Drag and drop e.g. "Drop Shadow" effect from palette and drop it on the new line
Result:
--------
...
                content: "Application content"
DropShadow  {
    offsetX:
    
    10
	offsetY:
    
    
    10
	color:
    
    
    Color.BLACK
	radius:
    
    
    10
}
---------

OTOH it drops into code correctly when you do not add the new line first. When you drop it directly at the end of "content" line
Comment 1 Anton Chechel 2009-11-23 08:28:45 UTC
Did you invoke reformat action after dropping palette item?
Comment 2 Anton Chechel 2010-01-27 07:06:49 UTC
If I invoke reformat after - it works.
We can think about invocation reformat automatically after d'n'd from palette. That could be another RFE.
Comment 3 Lukas Hasik 2010-01-27 07:33:03 UTC
no, it doesn't format after d'n'd. At least in 6.8
Comment 4 Anton Chechel 2010-04-01 13:36:02 UTC
*** Bug 170733 has been marked as a duplicate of this bug. ***
Comment 5 Anton Chechel 2010-04-01 13:37:41 UTC
*** Bug 178667 has been marked as a duplicate of this bug. ***
Comment 6 Anton Chechel 2010-06-14 12:46:36 UTC
*** Bug 185558 has been marked as a duplicate of this bug. ***
Comment 7 Martin Ryzl 2010-10-21 11:54:56 UTC
.
Comment 8 David Strupl 2011-05-16 13:50:18 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.