Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO]Revision view(Does CDO have a Revision view?)
[CDO]Revision view [message #638457] Thu, 11 November 2010 11:28 Go to next message
Nirmal SasidharanFriend
Messages: 120
Registered: July 2009
Location: Germany
Senior Member
Hello,

Does CDO have a "Revision View" which shows the revision details of a selcted resource or a model element? Since I couldn't find something like this I was trying to implement something in this direction. Although I could find APIs to get a CDORevision for a given version number, I couldn't find an API which returns a list of CDORevisions for a CDOResource or CDOObject. Could anyone help me here?

Any pointers would be greatly appreciated.

Thanks and regards,
Nirmal
Re: [CDO]Revision view [message #638511 is a reply to message #638457] Thu, 11 November 2010 14:37 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 11.11.2010 12:29, schrieb Nirmal Sasidharan:
> Hello,
>
> Does CDO have a "Revision View" which shows the revision details of a selcted resource or a model element?
As of now there's none. We'd be happy to review a contribution from you and eventually accept it.

> Since I couldn't find something like this I was trying to implement something in this direction. Although I could find APIs to get a CDORevision for a given version number, I couldn't find an API which returns a list of CDORevisions for a CDOResource or CDOObject. Could anyone help me here?
AFAIK there's currently no *optimized* API/protocol to fetch all/several versions of an object. As this kind of functionality is assumed to be used by selected tools (history browsers etc.) only and these tools should properly deal with latency anyway we didn't consider an optimization high priority. I suggest that you fetch one revision after the other in a background thread and populate your UI asynchronously. As the version number sequence always starts at zero and has no gaps you could also try to fork multiple threads. But: IIRC there's no way for audit views (fixed timestamp) to determine the highest possible version number in a given branch, other than sequentially asking and stopping if null is returned.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> Any pointers would be greatly appreciated.
>
> Thanks and regards,
> Nirmal


Previous Topic:Referencing image files
Next Topic:How to avoid childAction in TreeView?
Goto Forum:
  


Current Time: Fri Mar 29 00:04:43 GMT 2024

Powered by FUDForum. Page generated in 0.02550 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top