Menu

#29 Display coverage info in a custom text editor column

Eclipse3.3
open
nobody
5
2008-05-21
2008-01-05
No

Sometimes it can be a bit distracting having your whole java file coloured in bright green and red. Eclipse 3.3 added the ability to contribute extra columns to text editors.

I have attached a fragment that adds this feature. This eclipse 3.3 specific function could be delivered by an optional feature (with version constraints).

Discussion

  • Brock Janiczak

    Brock Janiczak - 2008-01-05

    new feature plugin to add a coverage column

     
  • Marc R. Hoffmann

    Logged In: YES
    user_id=1586594
    Originator: NO

    Hi Brock,

    many thanks for this contribution! I like the idea of using a fragment for Eclipse version specific stuff.

    -marc

     
  • Brock Janiczak

    Brock Janiczak - 2008-01-06

    Logged In: YES
    user_id=1867920
    Originator: YES

    You can actually use fragments to 'patch' the host plugin, but it requires you have to do some messing around with the classpath (add a placeholder 'patch.jar' in it). See http://wiki.eclipse.org/index.php/FAQ_Can_fragments_be_used_to_patch_a_plug-in%3F for details

    I was just lucky that all of the code for this feature was new and didn't need patching.

     
  • Marc R. Hoffmann

    • milestone: 642930 --> Eclipse3.3