Patching Eclipse Line Numbers / Breakpoints Bug

Are you having problems with line numbers not scrolling or breakpoints disappearing in Eclipse? I got a patch for you then...

The problem was reported a while ago in the Adobe Bug Base - and was one of those bugs you had to wonder about. Is this an Eclipse problem or is this something that Adobe can fix?

It turns out that the people at Eclipse.org had this on their radar for a while and have already fixed it. Problem is... pulling that fix back into previous versions of Eclipse or Flex Builder so that we can get back to business and stop fiddling around with display settings.

With the info in these bug reports and this changelog we can rebuild Eclipse... make it stronger... faster than before! Er... maybe just fix this bug. I get carried away every once in a while. Lets get to it (skip to the bottom if you just want to download a pre-patched jar).

Start by creating a directory / folder you can work in and then download an Eclipse version that includes the fix.

http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dr...

Un-archive the package, and copy this file to your work directory.

eclipse/plugins/org.eclipse.jface.text_3.6.0.v20100127-0100.jar

Copy this file to your work directory.

eclipse/plugins/org.eclipse.jface.text_3.4.2.r342_v20081119-0800.jar

Crack open each of the .jar files (they are essentially a zip file if you want to just change the extension) so that you are working in the org/eclipse/jface/text/source directory.

We're going to copy some files now from org.eclipse.jface.text_3.6.0.v20100127-0100 to org.eclipse.jface.text_3.4.2.r342_v20081119-0800.

Copy these items for AnnotationRulerColumn.

Copy these items for ChangeRulerColumn.

Copy these items for LineNumberRulerColumn.

Copy these items for OverviewRuler.

...and finally - copy these items for VerticalRuler.

When you are done copying files, re-jar (is that a word?) all the contents of your org.eclipse.jface.text_3.4.2.r342_v20081119-0800 patched version... and drop it back into your eclipse/plugins/ directory - confirm the replacement.

Restart Eclipse with -clean... and you should be good to go. I've tested this approach with Eclipse Ganymede and Galileo and both work just fine. I'm not sure what kind of mileage your going to get with a Flex Builder install... so - make sure to save a copy of any files you replace.

[ pre-patched Ganymede jar : org.eclipse.jface.text_3.4.2.r342_v20081119-0800.jar ]

[ pre-patched Galileo jar : org.eclipse.jface.text_3.4.2.r342_v20081119-0800.jar ]