1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resource FXML Parser

Discussion in 'Tutorials & Resources' started by Eagles13, May 9, 2015.

  1. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    618
    Likes Received:
    186
    Eagles13' FXML Declaration Helper:

    This is an IntelliJ extension which lets you quickly & efficiently generate Java declarations for FXML components. Once you've set up your FXML UI, this plugin removes the repetitive work of manually typing out all the component names and types.

    Functionality overview:




    To download this app as an Intellij plugin, see here:
    https://plugins.jetbrains.com/plugin/7821?pr=

    Or you can go to IntelliJ -> Settings -> Plugins -> Browse repositories -> Search for FXML -> Select "FXML declaration helper" -> Click install.

    Or download directly:
    https://dl.dropboxusercontent.com/u/7543521/ShareX/2015/06/FXMLGenerator.jar
    (to install go to Settings -> Plugins -> Install from disk -> Select JAR).


    Once downloaded & Installed, a new contextmenu item should be visible for all fxml files in the project view.
    [​IMG]




    Old OP:
    [​IMG]

    In order to use this, make sure that you have the relevant FXML file open, and then click the menuitem. The relevant declarations will be copied to the clipboard.

    I'm aware that it seems somewhat clunky, I'd quite like to add a feature to dynamically detect all FXML files in the project, and then have them as menuitems. Then when the end user clicks them, it just auto-inserts the declarations into the currently open document. When I have time to implement this kind of functionality, I probably will do. There will definitely be a version 0.2.

    Old Old OP:
    So, I got bored of typing out the IDs of all the controls on my JFX forms. So I wrote this:


    [​IMG]

    Download: https://dl.dropboxusercontent.com/u/7543521/Executables/JFXParser_Merged.exe
    Source code: https://dl.dropboxusercontent.com/u/7543521/Archives/JFXParser.zip

    Q&A:
    Q: Post a virus scan, n00b
    A: Don't use the program. This ain't HF and they don't mean shit.

    Q: I compiled it and the MD5 of the compiled version differs from the one you're offering for download.
    A: I merged dependencies using SmartAssembly.

    Q: y u no use ilmerge?
    A: Dunno.

    Q: I found a bug.
    A: Send it to me a long with the pertinent FXML file.

    Q: Your code is shite.
    A: I know.

    Q: Why don't you make this a dev tool?
    A: IT IS AN INTELLIJ PLUGIN
     
    #1 Eagles13, May 9, 2015
    Last edited: Jun 18, 2015
  2. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Well thats a good tool :p
     
  3. Defeat3d

    Defeat3d Primate

    Joined:
    Oct 30, 2014
    Messages:
    3,072
    Likes Received:
    1,894
    furry nais
     
  4. Thunderkill

    Joined:
    Jan 31, 2015
    Messages:
    116
    Likes Received:
    24
    Eagles, your are our savior, our messiah! All praise the god of the eagles!

    I don't know how many times i have assigned the wrong type of control or wrong name. Thank you
     
  5. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    505
    Likes Received:
    162
    Very nice, thanks! :)
     
  6. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    Fantastic idea! I hope to see it as a dev tool soon. :D
     
  7. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,212
    Likes Received:
    1,042
    pls make dev tool
     
  8. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    618
    Likes Received:
    186
    Even bettar. It is now an IntelliJ addon. See OP for glorious update.
    --- Double Post Merged, Jun 17, 2015, Original Post Date: Jun 17, 2015 ---
    Edit: Made a new version xD
     

Share This Page

Loading...