Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 156020

Summary: Support migration of oda.xml driver to the DTP Enablement namespace
Product: z_Archived Reporter: Linda Chan <lchan>
Component: BIRTAssignee: xingjie he <xhe>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: bluesoldier, yli
Version: 2.1.1   
Target Milestone: 2.2.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 156017    
Bug Blocks:    

Description Linda Chan CLA 2006-09-01 21:33:40 EDT
The oda.xml driver in BIRT is targeted to migrate to the DTP Enablement namespace in DTP 1.0 (December 2006) release:
   org.eclipse.datatools.enablement.oda.xml
   org.eclipse.datatools.enablement.oda.xml.ui

To allow for auto migration of existing report design files that use the BIRT oda.xml driver, Model should automatically switch the oda.xml id from BIRT to the new DTP one.
This would be similar to the design migration done for the oda.flatfile data source id.
Comment 1 xingjie he CLA 2006-09-19 06:09:17 EDT
DTE maybe will do it before 10.6, after they move the package , model will support it. now hold it.
Comment 2 Ivy Li CLA 2006-10-10 22:37:01 EDT
This bug need the DtE finish firstly. See bug 156017.
Comment 3 Linda Chan CLA 2006-10-11 14:35:40 EDT
BZ 156017 has been resolved since Oct. 3.  Related changes have been included in BIRT 2.2 daily build.

To find out whether an oda data source is deprecated, and its replacing oda data source id, use its oda.util.manifest.ExtensionManifest.
Two related methods are now available:
    public boolean isDeprecated()
    public String getRelatedDataSourceId()
Comment 4 xingjie he CLA 2006-10-12 23:25:09 EDT
after 3.2.7, convert deprecated extension id to new one. fix it 
Comment 5 Rick Lu CLA 2006-10-13 02:02:09 EDT
This bug has been fixed for a patch. However, problems remains:

1. Manifest only provides methods for data source.
2. Model should put calls to DTP classes into plugin subpackage.

Above changes defer to M2.
Comment 6 Linda Chan CLA 2006-10-17 06:56:25 EDT
Added an optional sub-element to the dataSet element in the oda.dataSource extension point schema to define a data set relationship (Bugzilla 159093; DTP 1.0 M3).  Added related methods in the oda.util.manifest.DataSetType to access the content of the associated relationship element.  

To find out the replacing oda data set id, use its oda.util.manifest.DataSetType methods:
    public boolean isDeprecated()
    public String getRelatedDataSetId()
Comment 7 xingjie he CLA 2006-10-20 01:44:45 EDT
Fix it.
Thanks Linda