Search This Blog

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

126 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
  30. Great work, easy to use and reliable. love it!
    Thank you for sharing it with us, helped me a lot.

    ReplyDelete
  31. Doesn't work in kepler... There's no + sign to fold...

    ReplyDelete
  32. Nice product, the plugin works for me most of the time.

    However ,the plugin gives error when interpreting this source line:
    private String stringValue; //
    i.e. when an empty comment is after a closed Java element.

    Afterwards, the saved file cannot be re-opened in Eclipse. The error message: "Could not open the editor: String index out of range: 31"

    Exception details:
    java.lang.StringIndexOutOfBoundsException: String index out of range: 31
    at java.lang.String.charAt(Unknown Source)
    at com.cb.eclipse.folding.java.calculation.UserDefinedRegionHelper.isSentinel(UserDefinedRegionHelper.java:53)
    at com.cb.eclipse.folding.java.calculation.UserDefinedRegionHelper.isOpeningSentinel(UserDefinedRegionHelper.java:29)
    at com.cb.eclipse.folding.java.calculation.CommentHelper.isUserDefinedSentinel(CommentHelper.java:145)
    ...

    It seems that both version 1.0.6 and version 1.0.7 contain the original UserDefinedRegionHelper.java (in SVN trunk) and omits the fix added in revision r9 to SVN branch "fixes_04_09_27"

    The fixed version of the source file can be found here:
    https://code.google.com/p/coffee-bytes/source/browse/branches/fixes_04_09_27/src/com/cb/eclipse/folding/java/calculation/UserDefinedRegionHelper.java

    ReplyDelete
    Replies
    1. I've extracted jar from sources
      Available at http://www.damiencuvillier.com/doc/com.cb.eclipse.folding_1.0.6.jar

      You'll have to replace this file in eclipse/plugins folder

      Delete
  33. A million thanks, this works on Eclipse Juno SR2.

    ReplyDelete
  34. Works with Kepler too

    ReplyDelete
  35. works in adt-bundle-windows-x86_64-20130917 on win7/64!
    thank you!

    Robert

    ReplyDelete
    Replies
    1. Confirmed working with the latest ADT Bundle as well. Thanks a ton!

      Delete
  36. Would it be possible to add a "First Line Filtering" option for those of us who prefer C-style braces? (Both braces on their own line.) Never liked those hidden braces on the same line as the control statement.

    ReplyDelete
  37. you rock, thank you !

    ReplyDelete
  38. Thanks, even works in Eclipse on Windows 8.1!

    ReplyDelete
  39. Confirmed working in ADT v22.3-887826 OS X. Thanks very much!

    ReplyDelete
  40. I just installed this today with Eclipse Kepler (Eclipse IDE for Java Developers, Version: Kepler Service Release 1, Build id: 20130919-0819), and even the Version 1.0.6 of the jar seems to be working fine for region folding. Hope it stays that way :-)

    ReplyDelete
  41. It would be cool if only "name" was visible, not "[start] name".

    ReplyDelete
  42. Works great, except for 1 little issue:
    In the 'User Defined Regions' Tab in the settings, there's a 'Initially Collapse' checkbox that doesn't do anything.
    Either all blocks collapse or none do, depending on the 'Initially Collapse' setting in the 'General' Tab.
    (I'm using Kepler on Ubuntu)

    ReplyDelete
  43. Thank you. You helped me a lot.

    ReplyDelete
  44. I can confirm that it works on Kepler with Windows XP and EGit.

    ReplyDelete
  45. For those saying plus signs don't show up, make sure User Defined Regions (last check box on General tab) is enabled, then close and reopen the source code file. It works in IBM Rational Application Developer 8 on Windows 7, 64 bit.

    ReplyDelete
  46. I installed as you said but the option will not collapse the region. I must be doing something dumb.

    ReplyDelete
  47. Hello everyone. I faced with problem. I use eclipse 4.3_x64 for java. I download and put files into eclipse but there is now "Select folding to use" option at all in folding settings. I tried to run eclipse as administrator but it didn't helped. Does anyone know what is wrong?

    ReplyDelete
  48. According to Defenestrator May 5th it works with kepler, which is 4.3. I cannot seem to get it to work in 4.4 Luna, any suggestions? I tried several options:
    - /plugins
    - /dropins
    - various downloads, only te jar, a version with a plugin and a features folder etc.

    ReplyDelete
  49. Thank you very much for sharing this. Seems to be working fine in Eclipse 4.4 Luna (2014).
    All I did was to copy the contents from the features and plugins directories inside the tarball to the respective eclipse installation directories, then configure the plugin in the Preferences Window as advised in the post. Note that if you want regions defined with line comments like you can define in Intellij Idea, you have to name the regions both in the opening and in the closing tags.

    ReplyDelete
  50. I'm using this at eclipse 4.4.2 and work's fine.
    Thank you.

    ReplyDelete
    Replies
    1. Works for me as well...

      just use 'Region', 'EndRegion' in the start and end identifier fields

      Delete
  51. worked for me thanks :)

    ReplyDelete
  52. Doesn't seem to work in 4.5. Mars

    ReplyDelete
    Replies
    1. Nevermind, I derped. Works

      Delete
    2. What did you do wrong? I may be having the same problem.

      Delete
    3. What did you do wrong? I may be having the same problem.

      Delete
  53. Now if only we could get something like this for Scala...

    ReplyDelete
  54. Ah... simplicity saver. Thank you.

    ReplyDelete
  55. confirmed working on eclipse MARS.1

    ReplyDelete
    Replies
    1. I cannot select the plugin as folding option in Mars.2.
      Has anyone a solution for this?

      Delete
  56. It works for Spring as well! very useful. Thank you very much!

    ReplyDelete
  57. Thanks,

    Worked for me in Mars (Version: Mars.2 Release (4.5.2))
    The trick is to go to Advance settings and specify [start] and [end] region identifiers. :)

    ReplyDelete
    Replies
    1. I don't even get the combo box to select the folding plugin, so I'm not able to select the Advanced tab. Everything worked easy and fine in luna.

      Delete
    2. Don't know what was wrong with my Mars installation. I have neon now and everything is fine again. :)

      Delete
  58. Eclipse Neon not working

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. It works on Eclipse NEON, but you need to have typical folder structure.
      To get it works you need to do:
      - When you use "Eclipse Installer" you need to deselect "Bundle Pool" option
      or
      - When you use zipped eclipse installation method - the folder structure is fine.

      Delete
    3. Where do I see wether I'm using bundle pool? I got the installation variant. Folder structure seems "normal". I got typical folders like "dropins" and "plugins". But the plugin still don't work.

      Delete
    4. Tom how did you get it working? I copied the folders in but nothing happened!

      Delete
    5. This comment has been removed by the author.

      Delete
  59. Worked for me on eclipse neon installation.

    inside dropin folder, follow this folder structure:

    [your eclipse installation]/dropins/features

    [your eclipse installation]/dropins/plugins

    Copy coffee folding plugin files in the above directories. I have also put the coffee folding plugin in [your eclipse installation]/plugins folder.

    Hope it works for you guys as well.

    ReplyDelete
    Replies
    1. I tried that but nothing happened
      Did you change any setting?
      What exactly did you pu into the plugins folder?
      Is there any key related to folding?

      Delete
    2. Okay.

      No I did not change any setting. I just selected coffee folding plugin in folding preferences of eclipse.

      In plugins folder, I have put coffee folding plugin jar.

      About key, you can define your own setting in preferences.

      Try the following structure:

      [your eclipse installation]/dropins/eclipse/features

      [your eclipse installation]/dropins/eclipse/plugins

      Copy coffee folding plugin files in the above directories. If it still doesn't work, try the below structure as well without removing the above structure:

      [your eclipse installation]/plugins

      [your eclipse installation]/plugins/features

      Copy respective files in their respective folder.

      It worked for me after reading through eclipse documentation & 45 minutes of trial-error. I hope it works for you now. If it does, please let other know what worked for you.

      Delete
    3. How do I select it in te folding preferences? Mine look like this: https://1drv.ms/i/s!AlxQqhhuk4vPiYxm5xj69gXD4wsu2A
      I've already copied all the files everywhere!

      Delete
    4. No, it should not look like this. From the screenshot I can say eclipse did not load the plugin.

      Delete
  60. I tried this in neon, in [User Defined Region] tab the [Start identifier] and [End Identifier] where set and added. However, the folding does not work. What is it's syntax it ignores the "//" and also the space? Does it need space?

    ReplyDelete
  61. I created an update site for the old coffee bytes code folding plugin that works with Eclipse Neon:
    https://github.com/stefaneidelloth/EclipseFolding/raw/master/com.cb.platsupp.site

    ReplyDelete
    Replies
    1. how do I use it? could you provide a little instruction in the readme?

      Delete
    2. Help > Install New Software... > Add...
      Fill Form with the name you want and the provided url
      Let be guided by Eclipse!

      (I'm on Mac. Menus may change on Windows)
      After restarting Eclipse, there is a new combo under Preferences > Java > Editor > Folding that let you choose between "Default Java Folding" and "Coffee Bytes Java Folding" (with many choices).

      Tested and approved. Good job!

      Delete
    3. YES FINALLY WORKED!
      T H A N K Y O U!

      Delete
    4. The only problem I have with this is that the buttons to collapse and expand the code show up as red blocks instead of the usual buttons. Does anyone else have this problem?

      Delete
    5. The hint from Anonymus really helped me !
      "Help > Install New Software... > Add...
      Fill Form with the name you want and the provided url
      Let be guided by Eclipse!"

      I got the option as desribed, but then I searched a while, how to implement the markers in the code, because in history there are different versions. Later I saw the information from Bartosz
      at the top of this article, so I repeat it here:
      USAGE:
      in User Defined Regions tab use e.g.:
      Start identifier: region End identifier: endregion
      (which is without //)
      In code:
      //region SomeName
      your code
      //endregion SomeName

      So here we should have a complete instruction with a good chance to work.
      It worked for me W7/64 - Java8 - Luna (09'2020).
      Thanks a lot, guys !

      Delete
    6. The provided URL from Anonymous:
      https://github.com/stefaneidelloth/EclipseFolding/raw/master/com.cb.platsupp.site

      Delete
  62. Co zrobić, by plugin działał również dla kodu C/C++? W 'Select folding to use' jest tylko 'Default C folding'. W sektorze dot. Javy po instalacji wpis pojawia się prawidłowo. Potrzebne mi to jest w Atollic TrueStudio.

    ReplyDelete
  63. Greeting thanks

    ReplyDelete
  64. i'm sorry but the eclipse photon has no features folder under install folder , how to fix this

    ReplyDelete
  65. It works with eclipse Photon 4.8.0 (Build id: 20180619-1200) with the procedure written in this article:
    Copy the contents of the:
    features folder => eclipse features folder
    plugins folder => eclipse plugins folder

    ReplyDelete
  66. The information you have posted is very useful. The sites you have referred was good. Thanks for sharing this: Coffee Expert

    ReplyDelete
  67. I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. Light roast coffee

    ReplyDelete




  68. Cleaning company in Dammam شركة مكافحة حشرات بالدمام حراج is one of the best companies present in the Kingdom of Saudi Arabia where it owns the best cleaning methods used from cleaning houses - apartments - villas - palaces - schools - شركة تنظيف بالدمام
    government and private institutions and also available water tank cleaning service, شركة مكافحة حشرات بالدمام
    provides the best house cleaning company in Dammam Lots of discounts on premium prices for the rest of Dammam cleaning companies .

    Cleaning company in Dammam is concerned with the trained workers to use cleaning materials without any damage or damage, شركة تنظيف فلل بالدمام
    even if something went wrong can solve the problem quickly without feeling any difference may occur, شركة مكافحة حشرات بالدمام حراج when we talk about the equipment and equipment and cleaning materials at cleaning company in Dammam will remind that افضل شركه تنظيف منازل بالدمام
    we have the finest And best of all, we will also talk within the finest cleaning company in Dammam on the tasks of professional supervision and how to be and where and when and what is offered to the client.

    افضل شركة تنظيف بيارات بالدمام
    افضل شركة تنظيف شقق بالدمام

    ReplyDelete
  69. Fantastic site you have here but I was curious if you knew of any discussion boards that cover the same topics discussed here? I’d really love to be a part of group where I can get comments from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Region Syddanmark job,
    job i Århus,
    Hr Manager,

    ReplyDelete
  70. Nice Blog!
    Facing error while using QuickBooks get instant solution with our QuickBooks experts.Dial +1-(844)999-0406 QuickBooks Support Phone Number

    ReplyDelete
  71. This is my first time of seeing and reading this kind of helping and well understandable content. Print coupon

    ReplyDelete
  72. A very interesting website or blog that I really like and it also attracts me to always follow this website or blog. Thank You.
    https://scatterfull.com

    ReplyDelete
  73. How to Resolve ATT Email Not Working on Mac?

    Instances occur when users encounter with the issue of ATT email not working on Mac device. In such cases, you need to make sure that the external mail server has messages in it. Make sure to enter the correct information while configuring the external mail settings. in case, you enter the wrong mail server address, username, port number, and password. Lastly, check whether the issue on local network or external mail server. These are the steps that users need to follow to resolve the issue.

    Why is My Canon Printer Not Printing the Right Colors?

    If Canon printer users are encountering with the challenge related to why is my Canon printer not printing the right colors then in such situations, users need to perform printer firmware update process. printer drivers formulate a link between the system and printer and hence it plays a crucial role. To make sure about the proper functioning of Canon printer driver, you need to either update or install the new drivers from the Canon printer official website. These are the steps that users need to follow to resolve the issue of Canon printer not printing the accurate colors.

    How to Disable Calendar Notifications in Outlook?

    If you are a Mac user and have the query about how to disable calendar notifications in Outlook then start by Outlook and log into your account. Click to preferences in the Outlook menu. After that, click to notifications and sound under the personal settings. Now, change the settings that you want for the new messages under the message arrival section.Lastly, under the sounds section, you can uncheck the boxes next to sound that users want to disable. These are the steps to follow to smoothly disable the calendar notifications in Outlook. Check out the steps and follow them properly to not to face such issues again.

    How to Change Gmail Profile Picture on Computer?

    Users who want to access the Gmail account on desktop computers or laptop then users can change Gmail profile picture on computer. Although,they might get some list of results online then follow the correct steps for changing Gmail profile picture on computer or changing the profile picture on PC. Changing or setting the profile picture of Gmail then you need to log into the Gmail account by using the correct login credentials. Once you are logged into Gmail account then follow the steps mentioned below to change Gmail profile picture on computer smoothly.

    ReplyDelete
  74. Why is my Gmail Not Receiving Emails on Android?

    You may face various Gmail issues because of the outdated Gmail app. If your Gmail not receiving emails on Android, several factors could be to blame for the problem. The first solution is to check that the email hasn't gone to another folder by mistake (like spam). Then check your storage level to see if you've run out of space. Your inbox settings might also be misconfigured. You can also reset Gmail for Android by clearing local data and enabling automatic sync. Also, re-sync your Gmail account and allow Gmail to work in the background. If that does not help, uninstall and re-install the Gmail app.

    ReplyDelete
  75. replica bags 168 mall replica hermes bags n7h81w7b69 replica bags nancy replica bags on amazon replica gucci bag s6r16w4a35 7a replica bags wholesale original site v7s04t3e00 good quality replica bags replica bags new york

    ReplyDelete
  76. 초콜릿
    광주초콜릿
    대전초콜릿
    대구초콜릿
    부산초콜릿
    울산초콜릿
    서울초콜릿Its always good to have tips on good blog posting. As I just started posting comments for blog and faced a lot of rejections. I think your suggestion would be helpful for me. I will let you know if this works for me.

    ReplyDelete

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