| Summary: | Add CDOTextResource and CDOBinaryResource | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> |
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> |
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | saulius.tvarijonas |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | Power to the People | ||
| Bug Depends on: | |||
| Bug Blocks: | 388567 | ||
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' Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master. 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 Available in R20130613-1157 (4.2) |
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() }