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 185758 - [69cat][javafx] Removing the first of 2 double quote marks terminating a string removes both quotation marks.
Summary: [69cat][javafx] Removing the first of 2 double quote marks terminating a stri...
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-08 05:38 UTC by esmithbss
Modified: 2011-05-16 13:51 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 esmithbss 2010-05-08 05:38:27 UTC
Product Version = NetBeans IDE 6.9 Beta (Build 201004200117)
Operating System = Linux version 2.6.32-22-generic running on i386
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

When editing a JavaFX Script file if a string is mistakenly terminated with 2 double quote marks, If you delete the first double quote, both terminating double quotes are removed.

If however, the second double quote is deleted, only that double quote mark is deleted.

To duplicate:

1) New JavaFX application
2) add the following text into the file (cut/paste to make sure the error is generated):

def backGround = ImageView {
    image: Image {
        url: "{__DIR__}resources/dock.jpg""
    }
    
}

3) Fix Imports

4) Go to the end of the line declaring the URL and position the cursor between the two double quote marks.  Remove the first double quote by hitting backspace. <= *** both double quotes are removed.

5) Hit <Ctrl>-Z to undo.

6) Now go to the very end of the line and use backspace to delete the last double quote.  <= *** This is the expected behavior.

7) Undo again

8) Position the cursor before the first of the 2 terminating double quotes.

9) Hit <Del>.  1 Double quote is removed <= *** This is the expected behavior

10) Undo again

11) Position the cursor between the two double quotes.

12) Hit <Del>.  1 Double quote is removed <= *** This is the expected behavior

So for 3 of the 4 ways to remove 1 of the double quotes, the behavior is consistent.  The 4th method deletes both double quote marks.

All behaviors should be consistent.
Comment 1 Martin Ryzl 2010-10-21 11:55:59 UTC
.
Comment 2 David Strupl 2011-05-16 13:51:53 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.