Log - R41D3NN/eclipse.jdt.ui GitHub Wiki

May 30, 2013

  • Setup development environment.

June 17, 2013

  • Started toying around with code to figure out how Java code folding was implemented.

June 26, 2013

  • Finally figured out where to place my code for the general Java code folding.
  • Started writing a code folder for "try" blocks.

June 27, 2013

  • Pushed a hack for java code block folding. Pretty buggy.
  • Created an inline code scanner for finding java code blocks of interest.
  • Removed the hack and implemented the code scanner.
  • Fixed issue of improper hover preview of code blocks.
  • Fixed issue where nested code blocks were not folded.
  • Fixed issue where last brace of code block not included in fold.
  • Uploaded a quick build.

June 29, 2013

  • Fixed the issue where "for" blocks were not not folded.
  • Fixed the issue where "synchronized" blocks were not folded.
  • Added "unnamed" block folding.
  • Uploaded a quick build.
  • Added the "unnamed" block folding preference.
  • Added JavaDoc comments to the PreferenceConstants preferences that have been added.

July 19, 2013

Sorry for not updating in a couple weeks. Sort of forgot that I had this log going.

I have been working on adding a new code folding feature for "case" and "default" blocks, but there are some issues with finding the end of the blocks. Today I noticed upon testing the project that the code no longer works for some reason. I have not yet figured out why. There are now exceptions being thrown that haven't been thrown before and now the annotations are not being marked properly; they are lines off. I'm working to see if I can fix this somehow. I've reverted to base and tried the code over and the offsets still are messed up. I cannot put my finger on whats wrong.

  • Fixed the issue where the NullPointerException would cause the editor not to open.

July 25, 2013

I've been working hard at figuring out whats going on and haven't yet fixed the major bug fully. Have made progress at figuring out what's wrong. Comments seem to be the culprit that start all of the issues. Specifically comments that are before functions.

  • Added collapse-checking methods into FoldingStructureComputationContext.
  • Fixed a spelling issue in a method.
  • Added JavaDocs to collapse-checking methods.
  • Fixed terminology of a variable. (String literal to character literal)

July 27, 2013

I have fixed the major issue that broke the code folding functionality. There is also an issue where unnamed blocks will be interpreted wherever there are braces that follow blocked code, so if your brace is on a new line, there will be two Java annotations created. A quick fix will be to remove the unnamed block folding feature until Issue 009 is resolved.

  • Fixed Issue 008!
  • Removed unnamed block folding.