From StyledTextViewer to a StyledTextEditor with JavaFX8

The title already says what this is about

the internal code is a bit ugly and I’m using some brute force stuff to simply get it going, naturally there are missing features like selection, … . Next is to port more stuff from Eclipse-Text-Infrastructure and integrate with JDT once more.

The sourcecode is found at e(fx)clipse github repo

10 thoughts on “From StyledTextViewer to a StyledTextEditor with JavaFX8

  1. Mircea February 22, 2013 / 7:56 am

    Nice nice nice!

    • jaouad May 8, 2013 / 2:16 pm

      I need your help …. SOS….
      hi i have a probelm with tu use CSS editor from e(fx)clipse…
      problem with to open the editors….
      thank you very match for your help….

  2. edubkendo March 4, 2013 / 3:49 am

    Since, as I understand it, you are virtualizing much of the text and placing each line in a seperate TextFlow node, how are you managing line wrapping and resizing, if you don’t mind my asking? I’m planning to implement a control which does something similar, though I won’t need to edit source code, so it will be a bit simpler because I won’t need the syntax highlighting and whatnot. Thanks.

    • Tom Schindl March 4, 2013 / 6:40 pm

      The root-control can style ranges of code – everything like Syntax-Highlighting is implemented ontop of it. I’m not dealing with automatic line wraping because I’m splitting up the input source into lines each one getting represented by a ListCell. So why not simply reuseing my code or better improve its implementation – I know that at the moment the simple use case you present doesn’t work but the only reason for it is that I didn’t really care about it.

      All code is released under EPL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s