How can I access existing Revisions programmatically?

Hi fellow developers,


I am trying to access revisions in the editor. I wonder if that is actually possible. I have come across various methods to create revisions / comments but none to read them.

Here's what I tried:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 The "Halleluah!" is shown and the editor jumps to the first segment containing revisions so that is fine. Alas, I cannot seem to actually read these revisions.

Can anybody help me out?

P.S: If instead of using the editor I need to parse the .sdlxliff, so be it. I just preferred I could do this in the editor.

Thanks & best,

Andreas

  • Argh. Seems I've only been a little too stupid when writing "item.GetType().name" to my log file to find the revision marker.

    So for anyone needing this, here is what I will now try to build upon:

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

     

    Cheers,

    Andreas

  • Hi Andreas,

    What is your MarkupDataVisitor class doing?

    Usually you would use the visitor pattern like so by implementing http://producthelp.sdl.com/SDK/FileTypeSupport/4.0/html/eba49731-734b-3a3a-d166-9a22d7f59cdf.htm

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX