Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 391312 - Provide per-CDOObject histories
Summary: Provide per-CDOObject histories
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: Power to the People
Keywords:
Depends on:
Blocks: 256624
  Show dependency tree
 
Reported: 2012-10-07 03:34 EDT by Eike Stepper CLA
Modified: 2013-06-27 03:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2012-10-07 03:34:04 EDT
CDOCommitHistory currently provides per-CDOSession/IRepository or per-CDOBranch histories. Support per-CDOObject histories, too.
Comment 1 Eike Stepper CLA 2012-10-07 06:59:05 EDT
I added the following API:

	public interface CDOObjectHistory extends CDOCommitHistory
	{
  	public CDOObject getCDOObject();
	}
	
  public interface Provider<KEY, HISTORY extends CDOCommitHistory>
  {
    public CDOCommitHistory getHistory();

    public HISTORY getHistory(KEY key);
  }

CDOView now extends CDOCommitHistory.Provider<CDOObject, CDOObjectHistory>.

And CDOObject now offers:

  public CDOObjectHistory cdoHistory();

The CDOHistoryPage automatically reacts to CDOObject selections by showing a per-CDOObject history.
Comment 2 Eike Stepper CLA 2012-10-07 06:59:25 EDT
commit e403c787d6ea93d6e557b8296bb56f84fad633e3
Comment 3 Eike Stepper CLA 2013-06-27 03:30:15 EDT
Available in R20130613-1157 (4.2)