0

i installed the plugin e(fx)clipse but i don't know how to add a css file to my package. i right click and there is no option of .css or .fxml files as compared to netbeans. Can anybody tell me what am I missing over here?

1 Answer 1

1

For FXML, you can do "File" -> "New" (or right-click and "New") -> "Other" (or CMD-N to get this far), then expand JavaFX and you have the option for new FXML document.

For CSS, if you also have the web tools platform plugin (which I think is standard with Eclipse for JEE but not for Eclipse for JSE), do the same and expand "Web" and there is a CSS option. Otherwise you can just expand "General" and choose "File". If you need an additional plugin that edits CSS files, something like Web Developer Tools should work (though it might issue warnings for JavaFX-CSS properties that are in general not web-CSS properties; I just live with those warnings).

Sign up to request clarification or add additional context in comments.

3 Comments

what will i have to do to have the css option if i don't want to go with the file @James_D
@IshanSrivastava Install Web Developer Tools: marketplace.eclipse.org/content/eclipse-web-developer-tools-0
To edit JavaFX CSS you only need e(fx)clipse it has a special editor for JavaFX. Just create a text-file ending in .css and the editor will open

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.