Menu

Modified, Less Obstusive Plugin-Version for Java

Wock
2013-12-05
2018-08-04
  • Wock

    Wock - 2013-12-05

    Hi!

    I was pondering coding something like EditBox myself - but here it is and working quite good.

    But the default algorithm creates way too many boxes for me - I like to format my Source-Code with blank lines between logical groups and with the default settings a simple class with some methods has already 3-4 layers of boxes.

    So I modified the JAVA algorithm so it only identifies Java-Blocks (opening and closing {} ) as blocks and only marks them, if they have at least 5 Lines. So all small else{return;} blocks and similar will not be marked as an individual block.

    I also tweaked the rebuild/repaint algorithm, since I find the mouse-hover highlighting makes the IDE kind of slow - so now only when you enable the "on move" option it will do that - otherwise it only repaints on changes!

    You can download my modified version on Skydrive: http://1drv.ms/1gOGulO (update 0.29)

    (Be sure to set your java-Theme to use the JAVA builder, not Text or Markup!!!)

    My Theme:

    #Editbox Eclipse Plugin Settings
    #Thu Dec 05 11:33:48 CET 2013
    HighlightOne=false
    FillGradient=false
    FillSelected=false
    RoundBox=false
    BorderColorType=1
    Name=MyJava
    ExpandBox=false
    BorderDrawLine=false
    FillOnMove=false
    Alpha=0
    HighlightWidth=1
    BorderWidth=1
    HighlightColor=e1e9ff
    BorderColor=e1e9ff
    FillKeyModifier=
    HighlightColorType=1
    FillGradientColor=ffffff
    Builder=Java
    HighlightDrawLine=false
    FillSelectedColor=ffffff
    BorderLineStyle=1
    Colors=ffffff-f7fafc-eff5f9-e7f0f6-dfebf3-d7e6f0-cfe1ed-c7dcea-bfd7e7-b7d2e4-afcde1
    HighlightLineStyle=1
    NoBackground=false
    CirculateLevelColors=false
    
     

    Last edit: Wock 2014-05-21
    • Piotr

      Piotr - 2013-12-05

      Wow, great!
      I'm going to look at it and test.
      Expect some feedback after weekend.

      Regards
      Piotr

      On 12/5/2013 11:37, Wock wrote:

      Hi!

      I was pondering coding something like EditBox myself - but here it is
      and working quite good.

      But the default algorithm creates way too many boxes for me - I like
      to format my Source-Code with blank lines between logical groups and
      with the default settings a simple class with some methods has already
      3-4 layers of boxes.

      So I modified the JAVA algorithm so it only identifies Java-Blocks
      (opening and closing {} ) as blocks and only marks them, if they have
      at least 5 Lines. So all small else{return;} blocks and similar will
      not be marked as an individual block.

      I also tweaked the rebuild/repaint algorithm, since I find the
      mouse-hover highlighting makes the IDE kind of slow - so now only when
      you enable the "on move" option it will do that - otherwise it only
      repaints on changes!

            You can download my modified version on Skydrive:
            http://sdrv.ms/1bihWLB
      

      (Be sure to set your java-Theme to use the JAVA builder, not Text or
      Markup!!!)

          My Theme:
      

      Editbox Eclipse Plugin Settings

      Thu Dec 05 11:33:48 CET 2013

      HighlightOne=false
      FillGradient=false
      FillSelected=false
      RoundBox=false
      BorderColorType=1
      Name=MyJava
      ExpandBox=false
      BorderDrawLine=false
      FillOnMove=false
      Alpha=0
      HighlightWidth=1
      BorderWidth=1
      HighlightColor=e1e9ff
      BorderColor=e1e9ff
      FillKeyModifier=
      HighlightColorType=1
      FillGradientColor=ffffff
      Builder=Java
      HighlightDrawLine=false
      FillSelectedColor=ffffff
      BorderLineStyle=1
      Colors=ffffff-f7fafc-eff5f9-e7f0f6-dfebf3-d7e6f0-cfe1ed-c7dcea-bfd7e7-b7d2e4-afcde1
      HighlightLineStyle=1
      NoBackground=false
      CirculateLevelColors=false


      Modified, Less Obstusive Plugin-Version for Java
      https://sourceforge.net/p/editbox/discussion/1031377/thread/6c3d7708/?limit=25#a343


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/editbox/discussion/1031377/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
    • Piotr

      Piotr - 2014-05-02

      I included this theme in the latest version 0.0.23.
      Regards Piotr

       
  • Wock

    Wock - 2013-12-05

    Please Comment if you try it!!!

     
  • Wock

    Wock - 2014-01-28

    And I made an update - some bugfixes and performance tweaking for the Java-Version

    And Since I'm currently heavy working with PERL and I found the best Code Editor to be Eclipse with EPIC (Perl Critic is integrated)
    I wrote another Parser for EditBox so it works with Perl-Syntax (Although Perl RegEx are a pain in the ass - who defines something like x =~ ?...?;) But it works good with all commonly used Quotelike Operators and HEREDOC..

    If you want to try it: http://sdrv.ms/1aEzRiW

    Comments highly appreciated...

    @Piotr, if you can give me access to the Editbox SVN I could also update the changes I made - you are also free to provide this version on you page.

     
    • Piotr

      Piotr - 2014-01-29

      Hi Wock

      I'm testing/using your first version since a few days. No problems so
      far (elicpse 4.2.2, windows7) . My suggestion is to define new builder
      with your changes (e.g. JavaBlocks). I added you to project members, let
      me know if any problems with commit. Are you going to make a branch -
      well putting code into trunk is also fine but it would be good to let me
      review changes first.

      Let me know what version of eclipse are you testing and OS. I remember
      there are differences with paint/scrolling behaviour on windows and
      linux - so I was trying to balance implementation to work on both systems.

      It is great to see new input. I'd like to publish everything with all
      credits.

      Regards
      Piotr

       
  • sourceforger

    sourceforger - 2018-08-04

    I just made an account to see if there was a way to just get methods in the box for JAVA,

    is this the solution for it? I'd like to keep the rainbow colors too!

    EDIT: GOT IT !!! picked onclick, reset the background in my devstyle theme to black, and then had the EDITBOX to just show a line drop down instead of a whole box. Lovin it!

     

    Last edit: sourceforger 2018-08-04
    • Piotr

      Piotr - 2018-08-04

      Thanks!
      Yes, you can also change color settings on each level separately - on preferece dbclick on 'level n'. See for example Galasbey theme.

      Regards
      Piotr

       

Log in to post a comment.

MongoDB Logo MongoDB