Java Compare Editor Enhancements, Eclipse Galileo Feature #10

Java Compare Editor Enhancements, Eclipse Galileo Feature #10

The Eclipse 2009 Release — codename Galileo – will be available in about 10  days. To help countdown the final push, I have decided to review my Top 10 Galileo features. I need to stress that these are my top 10 features. On a daily basis I make heavy use of the Eclipse SDK, Mylyn, Modeling and RAP, so my top 10 comes from these projects.

Number 10 on my list is the enhancements to the Java Compare editor.  I spend a great deal of time creating and submitting patches. With the compare editor, can can check — and double check — exactly what I’m submitting. However, in the past when I found a problem (or needed to review the code), I had to switch back to the Java editor. Once I had fixed the problem, I then created a new comparison and continued the process.

With the enhancements to the compare editor, my patch management process is more streamlined. Now I can do all my review / fixes in one editor without constantly switching tools. The Compare editor now supports:

  • Content Assist
  • java-compare-assist

  • Hyperlinking
  • java-compare-hyperlinking

  • Javadoc on Hover
  • java-compare-hover

  • Quick Outline
  • java-compare-outline

  • Goto Line
  • gotoLine

    Shout-outs for this go to Tomasz with help from Dani. Thanks guys!!

    12 Comments
    • Tomasz Zarna
      Posted at 11:53 am, June 16, 2009

      You’re welcome, glad you like it 🙂

    • Wim Jongman
      Posted at 2:33 pm, June 16, 2009

      Yep! I like this. Great code!!

    • Mattias Olofsson
      Posted at 5:42 pm, June 17, 2009

      It’s so sad to see that the new Galileo release only contains crap, more or less.
      Hove many time do I use this functionallity to be able to edit in diff mode. Perhaps 1 min every week.
      I can’t emagine that the community haven’t flagged for more important features, that of course hasn’t been prioritized since this functionallity was implemented.

      Just my opinion, it would be nice if eclipse community have some feature request voting posibillity or at least look 5 minutes at, for instance, intellij and analyze what the editor ocn the plattform really needs.

      / Mattias

    • Amit
      Posted at 8:33 am, June 21, 2009

      Mattias,

      With all due respect to your working environment, we all work in the collaborative world where real people (many of them) work on real code and mist of the time common piece of code and thats where a powerful diff tool helps. The enrichment of diff tools is something that the community has taken up after constant feedback on the same. Again, you can always debate based on your usage of the tools, but I am sure am looking forward to use this feature !!

      ~A

    • Posted at 4:05 pm, June 24, 2009

      Mattias,

      > Just my opinion, it would be nice if eclipse community have some feature request voting posibillity or at least look 5 minutes at, for instance, intellij and analyze what the editor ocn the plattform really needs.

      The Eclipse community uses Bugzilla for feature requests and voting: https://bugs.eclipse.org/bugs/
      Eclipse also now includes the Usage Data Collector (UDC), which sends usage pattern data to Eclipse for analysis so they know what to focus on for upcoming releases.

      Thanks,
      chris

    • Frank Henningsen
      Posted at 10:38 am, June 25, 2009

      just installed Galileo, but for some reason the enhancements you describe are missing in Eclipse Java EE IDE for Web Developers.Build id: 20090621-0832. I hope they will come in a update soon 🙂

    • S Ong
      Posted at 2:57 pm, June 25, 2009

      These are very useful enhancements. They will make our team more productive.

      One feature I wish was included is the ability to select a file from the top pane tree view (Structure Compare) and launch an edit pane for that file.

    • Eli
      Posted at 9:31 am, July 8, 2009

      All of these features already exists in the normal editor
      I don’t see why all of the editors can’t come from the same code

    • Ian Bull
      Posted at 4:40 pm, July 8, 2009

      Ell,

      I really don’t know what’s involved with building these features into the compare editor while still supporting the compare functionality. If they could reuse existing code, I’m sure they did.

    • Frank Henningsen
      Posted at 1:10 pm, July 15, 2009

      aargh, i finally found the enhancements in compare editor. For some reason the enhancements are only found when using Team Synchronizing perspective. When i compare two Java files in Java perspective (via. Compare with -> latest from repository), then the compare editor has no enhancements 🙁

      strange!

      best regards
      /Frank

    • John Newman
      Posted at 7:43 pm, August 14, 2009

      Wonderful, this is much needed as the compare editor is used so frequently.

      However it doesn’t *look like you can double click the line number to set a breakpoint. This is one thing I really would love to see, since I usually need to debug the code I changed before checking in. I keep the synchronize view on the right to give me a quick view of what I changed. And it would be great if i could just work out of there since it gives such a good context around what I am doing.

      so are breakpoints from compare implemented?

      Really I think the compare editor should be the java editor but the right side has a button to go away and come back. and/or the java editor has a button to bring the repository version up in the right side. Anyone see what I am getting at?