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 239093 - -fx-text-overrun: leading-word-ellipsis is marked as inappropriate in JavaFX CSS editor
Summary: -fx-text-overrun: leading-word-ellipsis is marked as inappropriate in JavaFX ...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Anirvan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-03 21:21 UTC by Alexander Kouznetsov
Modified: 2015-03-20 10:27 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch containing fix (1.07 KB, patch)
2015-03-11 09:19 UTC, Anirvan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2013-12-03 21:21:01 UTC
The following is valid JavaFX css fragment:

.hyperlink{
  -fx-text-overrun: leading-word-ellipsis;
}

NetBeans suggests to replace this line with the following which is not correct

-fx-text-overrun: leading-word-ellipses;

Actually a following exception is thrown when the latter word is used:
java.lang.IllegalArgumentException: No enum constant javafx.scene.control.OverrunStyle.leading_word_ellipses
	at java.lang.Enum.valueOf(Enum.java:238)
	at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:71)
	at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:47)
	at javafx.scene.CssStyleHelper.calculateValue(CssStyleHelper.java:1435)
	at javafx.scene.CssStyleHelper.lookup(CssStyleHelper.java:1020)
	at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:695)
	at javafx.scene.Node.impl_processCSS(Node.java:8882)
	at javafx.scene.Parent.impl_processCSS(Parent.java:1237)
	at javafx.scene.control.Control.impl_processCSS(Control.java:872)
	at javafx.scene.Parent.impl_processCSS(Parent.java:1268)
	...

Looks like there was some confusion as I was able to find JavaFX 1.3 CSS documentation which was using "ellipsis" word instead of "ellipses". However, JavaFX 8 seems to be using "ellipses" for all the values of -fx-text-overrun property. Please refer to http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#labeled
Comment 1 Alexander Kouznetsov 2013-12-03 21:22:45 UTC
Please read the sentence above as following:

However, JavaFX 8 seems to be using "ellipsis" for all the values of -fx-text-overrun property.
Comment 2 Alexander Kouznetsov 2013-12-03 21:23:52 UTC
Crap! Once again:

Looks like there was some confusion as I was able to find JavaFX 1.3 CSS documentation which was using "ellipses" word instead of "ellipsis". However, JavaFX 8 seems to be using "ellipsis" for all the values of -fx-text-overrun property.
Comment 3 Anirvan 2015-03-09 13:23:33 UTC
I'd like to NetFIX [1] this bug.
Is it possible? [1]
http://wiki.netbeans.org/NetFIX
Comment 4 Anirvan 2015-03-11 09:19:45 UTC
Created attachment 152552 [details]
Patch containing fix

Replaced incorrect word 'ellipses' with 'ellipsis'.
Comment 5 Svata Dedic 2015-03-19 10:22:19 UTC
Applied as jet-main#2e8899ae063e. Thanks !
Comment 6 Quality Engineering 2015-03-20 03:24:56 UTC
Integrated into 'main-silver', will be available in build *201503200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2e8899ae063e
User: Svata Dedic <sdedic@netbeans.org>
Log: #239093: spelling corrected
Comment 7 Jiri Kovalsky 2015-03-20 10:27:37 UTC
Product Version: NetBeans IDE Dev (Build 1)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb)

Verified. Thanks for the patch Anirvan and thanks Svata for review and integration!