Search This Blog

Loading...

Sunday, December 4, 2011

how to install coffee-bytes plugin in eclipse; Eclipse folding plugin; manual folding plugin

I had trouble finding a good folding plugin for eclipse Indigo. The installation details are inserted below. In short: download the archive, extract plugins and features folders to the appropriate plugins and features folders in eclipse.

USAGE:

in User Defined Regions tab use e.g.:

Start identifier: region    End identifier: endregion

In code:

//region SomeName
your code
//endregion SomeName

 

Installation instructions:

  1. Install plugin
    1. Unpack the downloaded file eclipse-folding-plugin.tar.gz
    2. Copy the contents of the:
      1. features folder => eclipse features folder
      2. plugins folder => eclipse plugins folder
  2. Configure plugin in Eclipse:
    1. Select "Windows->Preferences"
    2. Select "Java->Editor->Folding"
    3. Check the "Enable folding" option
    4. Select "Coffee Bytes Java Folding" in the "Select folding to use:" option
    5. Check "User Defined Regions" in the "General Fold Setting:" option

46 comments:

  1. Thanks for publishing a working plugin for Indigo!

    ReplyDelete
  2. Source is available here:
    http://code.google.com/p/coffee-bytes/source/browse/

    but the project is now dead (last commit was 2006).
    I used the plugin for java, so it worked for me....

    ReplyDelete
  3. Thank you very much...
    ^_^
    It satisfied me...

    ReplyDelete
  4. thank you very much! it's helpful!

    ReplyDelete
  5. Do you think this editor ( the user defined region folding) could be tailored or shoe-horned to work with CDT C++ editor ??!!

    ReplyDelete
  6. Thanks! Been looking for something like this for java for ages. This is confirmed working on Ubuntu 11.04 w/ Eclipse 3.7 Indigo

    ReplyDelete
  7. I dont find step 4: option "select folding to use".
    anybody can help me?
    when clicking "Folding" all the options are checkboxes: Enable folding, comments, header comments, inner types, members, imports. dont have the option above.

    thanks

    ReplyDelete
    Replies
    1. I just ran into this issue. If you are running under Windows 7, right click on the Eclipse icon and run it as an admin. Then follow the instructions. You can run it normally afterward.

      Delete
    2. thanks, but what is the password of admin? how can i know?

      Delete
    3. Well buddy, if you don't know your own admin password, how could you expect that we do...

      Delete
    4. I think the admin password is usually the name of your first Pet..!

      Delete
    5. Also, if you are running Win7 64-bit, you may need to make sure that eclipse is running from the Program Files (x86) folder, to ensure that it is treated as a 32-bit application.

      Delete
  8. very nice... thank you very much........

    ReplyDelete
  9. nice feature, thanks

    ReplyDelete
  10. Thanks a lot for this plugin! Works fine in INDIGO.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Ok, we are getting this error in Eclipse Juno for Java http://stackoverflow.com/questions/11260868/eclipse-juno-assertion-failed-problems-occurred-when-invoking-code-from-plug

    ReplyDelete
  13. Any solution ? the assertion failed is really annoying bug :(

    ReplyDelete
  14. Same error: assertion failed

    Thanks

    ReplyDelete
  15. Google for file "com.cb.eclipse.folding_1.0.7.jar", this seems to be updated version of "com.cb.eclipse.folding_1.0.6.jar" plugin file or something.... I've installed it about hour ago, so far no problems encountered

    ReplyDelete
  16. nevermind, it does appear also with this one :/

    ReplyDelete
  17. Yes, unfortunately it appears but a lot rare than 1.0.6.

    I hope it will be fixed.

    ReplyDelete
  18. Thanks so much!! I am happy! YEAH,

    ReplyDelete
  19. same error: Assertion failed :(

    ReplyDelete
  20. Confirmed to work in JBoss Developer Studio 5.01 (based on Eclipse 3.7)

    If JBDS was installed under root (i.e. under /usr/local/jbdevstudio) you need to copy the files as root and run JBDS/Eclipse once as root as well.

    ReplyDelete
  21. THANKS MAN. ITS WORKING.

    ReplyDelete
  22. Does anybody get some news about this annoying "assertion failed" bug ? :\
    I don't really want to remove coffee byte plugin, but this bug is really annoying.

    ReplyDelete
  23. Let me know the link to download com.cb.eclipse.folding_1.0.7.jar

    ReplyDelete
    Replies
    1. http://files.cnblogs.com/cruisoring/com.cb.eclipse.folding_1.0.7.zip

      Delete
  24. Thanks for posting this. Much appreciated.

    From my testing the plugin seems to work perfectly in 4.2.0 (Juno) too :).

    ReplyDelete
  25. Please anyone has an error fix?

    ReplyDelete
  26. Thanks a lot! It just works! :-D

    ReplyDelete
  27. Does't work with eclipse 4.2.0 Juno ,
    Nothing happened

    ReplyDelete
  28. Great post. Thank you
    If you feel lazy to even type region add this to
    Window -> Preferences -> Java -> Editor -> Templates

    Code:
    // region ${Name}
    ${line_selection}${cursor}
    // endregion ${Name}

    Implementation: Alt + Shift + H and then Select template.

    ReplyDelete
  29. Amazing THANKS so much using with Android Developer Tools Build: v21.1.0-569685. Works like a treat awesome job. Thanks very much for sharing

    ReplyDelete

If you like this post, please leave a comment :)