Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362982 - Add CDOTextResource and CDOBinaryResource
Summary: Add CDOTextResource and CDOBinaryResource
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: 388567
  Show dependency tree
 
Reported: 2011-11-06 04:32 EST by Eike Stepper CLA
Modified: 2013-06-27 03:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2011-11-06 04:32:26 EST
Add CDOTextResource and CDOBinaryResource:

interface CDOResourceLeaf extends CDOResourceNode
interface CDOResource extends CDOResourceLeaf
interface CDOFileResource extends CDOResourceLeaf { CDOLob getContents() }
interface  CDOTextResource extends CDOFileResource { CDOCLob getContents() }
interface CDOBinaryResource extends CDOFileResource { CDOBLob getContents() }
Comment 1 Eike Stepper CLA 2011-11-07 06:56:49 EST
commit f9e88d74aa5e2f3c9d2f690a0fef3375035294b3
Author: Eike Stepper <stepper@esc-net.de> 2011-11-07 12:54:48
Committer: Eike Stepper <stepper@esc-net.de> 2011-11-07 12:54:48
Parent: 69e7006f1960a563db1360484c69a213899e9faf (Updated to Orbit S20111018035124)
Parent: 19758c729b45a283f16f43119f41cb9ce7c1bbd2 ([362982] Add CDOTextResource and CDOBinaryResource  https://bugs.eclipse.org/bugs/show_bug.cgi?id=362982)
Branches: master

Merge branch 'bugs/362982'
Comment 2 Eike Stepper CLA 2012-08-14 22:53:41 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 3 Eike Stepper CLA 2012-08-30 13:12:25 EDT
Now I've added the following API to make it easier to actually create and access file resources:

org.eclipse.emf.cdo.view.CDOView.getTextResource(String)
org.eclipse.emf.cdo.view.CDOView.getBinaryResource(String)

org.eclipse.emf.cdo.transaction.CDOTransaction.createTextResource(String)
org.eclipse.emf.cdo.transaction.CDOTransaction.getOrCreateTextResource(String)
org.eclipse.emf.cdo.transaction.CDOTransaction.createBinaryResource(String)
org.eclipse.emf.cdo.transaction.CDOTransaction.getOrCreateBinaryResource(String)

org.eclipse.emf.cdo.eresource.CDOResourceFolder.addTextResource(String)
org.eclipse.emf.cdo.eresource.CDOResourceFolder.addBinaryResource(String)

Tests are in 

org.eclipse.emf.cdo.tests.ResourceTest.testTextResource()
org.eclipse.emf.cdo.tests.ResourceTest.testBinaryResource()

commit 72284afe64ac2bd333ab08708d999c9487ac46a9
Comment 4 Eike Stepper CLA 2013-06-27 03:33:34 EDT
Available in R20130613-1157 (4.2)