e(x)clipse 0.0.3 released


UPDATE
Please download the latest version from efxclipse.org

Back from holiday a lot of company work I’ve been unable to implement a lot of new things for e(fx)clipse but I’m still making progress improving the current implementation. I’ve improved the validation of css styles, fixed some language definition stuff to improve CSS-compability, … .

The really cool thing about the CSS-Editor is that one can implement ones own validation rules, attributes using OSGi-Services. So one could e.g. write an extension which understands webkit specific features, or one for SWT-CSS.

Still my main focus is support for JavaFX-CSS but here’s the main problem with it: Some of their CSS-Definitions are simply invalid if one takes a close look at the CSS-Definition. What do I mean with that? Look at this example of a linear gradient:

.test {
  -fx-background-color: linear (0%,0%) to (100%,100%) stops (0.0,red) (1.0,black)
}

which is simply invalid because a function call has to have a name which is not the case. While this problem is not fixed at least in a way like this:

.test {
  -fx-background-color: linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
}

It’s impossible to implement a CSS-Compatible tooling – so my hope is that this bug gets fixed though I’m not sure this will happen. And because we are at it definitions made up from many terms like the gradient above makes validation of definitions like this unnecessary hard to implement:

-fx-border-color <paint> | <paint> <paint> <paint> <paint> [ , [<paint> | <paint> <paint> <paint> <paint>] ]*

If you take the example from above this means one could define a CSS like this:

.test {
  -fx-border-color: 
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black),
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
}

or even worse

.test {
  -fx-border-color: 
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   radial (25%,25%) , 50% focus (20%,20%) stops (0.0,gray) (0.50,darkgray) (1.0,dimgray) reflect
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black),
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
   linear (0%,0%) to (100%,100%) stop(0.0,red) stop(1.0,black)
}

Do you see the “,” in between the radial gradient definition? Argh. I think every value should be a sole function term with subterms and I hope it gets implemented like this.

Anyways I’ve uploaded release 0.0.3 to my git-repo.

Beside working on the CSS front I’ve also started looking into the WindowBuilder sources to understand how one could implement support for the Java-API and fxml but it is going to take a lot of time until I can provide something useful.

This entry was posted in e(fx)clipse. Bookmark the permalink.

8 Responses to e(x)clipse 0.0.3 released

  1. Pingback: Java desktop links of the week, August 22 | Jonathan Giles

  2. Pingback: JavaFX links of the week, August 22 // JavaFX News, Demos and Insight // FX Experience

  3. mipa says:

    Have you filed the problems you have observed in the JavaFX bug tracking system? Otherwise they will probably never be fixed.

  4. Plugin is starting on Eclipse 3.7 until version 0.0.2, newer versions are not visible.

    • Tom Schindl says:

      What do you mean with newer version are not visible? I successfully installed 0.0.5 inside my 3.7 and know from at least one other person who successfully installed it on 3.7 as well.

  5. With installed 0.0.2 version i can choose the dslcss editor for editing my css files. With version 0.0.3 (and 0.0.5) the editor is not existing. i am using eclipse 3.7 “for java developers”.

    • Tom Schindl says:

      In 0.0.5 the editor is by default configured to be used for .css-Files because JavaFX 2.0 can only load css-Files who are ending in .css and not .fxcss

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.