IDE: e (fx) clip is not working properly

I have the following problem:

I installed e (fx) clips in Eclipse to enable JavaFX compatibility. He correctly created the following:

  • CSS and FXML files linked to the correct editor (from "file associations")

It does not work correctly because it lacks the following:

  • It shows Unknown property: -fx-.... for every entry in my CSS.
  • It does not autocomplete in both FXML and CSS files.
  • It continues to show: The controller 'someController' has no field 'someField' , and the fields are run in the controller.

What I already tried to fix:

  • Added JavaFX SDK for project libraries.
  • Check the installed Eclipse software section, but all the e (fx) clip packages are installed correctly.
  • Created a new JavaFX project from scratch.

This did not fix the problem. I think this is due to the addition of the library, because when I add the JavaFX SDK and click Next, I get the blanco screen and I need to click Finish. When I do this, it only adds org.eclipse.fx.ide.css.jfx8 . Is this just normal or should there be more packages?

I am using Eclipse Luna 4.4.1 and Java JDK 8u40.

Any help is much appreciated!

+5
source share
3 answers

I solved this problem after installing the Eclipse web developer tools and the Eclipse Java web developer tools.

+2
source

To clarify Alex's answer.

I had the same problem that I was not able to get autocomplete using my JavaFX CSS. My fix added the JavaFX SDK to the list of libraries. For this:

  • Go to the project | The properties
  • Choose Java build path in tree
  • Go to the Libraries tab
  • Click the "Add Library ..."
  • Choose JavaFX SDK
  • Click Next, then Finish.
  • Click Apply
  • Click OK

Editing CSS after these steps.

+8
source

I have the same problem: before installing the packages mentioned above, I turned on the JavaFX SDK and I put it on top of my "Order and Export". e (fx) clipse will start working without any unknown property, and Auto-Complete will also start working.

Project -> Properties -> Java build path -> Order and Export tab and return the JavaFX SDK at the top ...

+1
source

Source: https://habr.com/ru/post/1207676/


All Articles