Bug 137415 The dataset can not be edit when the report is created by the old version birt
Description: The dataset can not be edit when the report is created by the old version birt Steps to reproduce: 1. download the attached design file 2. double click the dataset Actual result: In the first to clicking the dataset, update message is appeared. The second time to clicking the dataset, an error is thrown out. org.eclipse.birt.data.engine.core.DataException: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc Missing properties in Connection.open(Properties). at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:136) at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:120) at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:108) at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:206) at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:247) at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:197) at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:350) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:181) at org.eclipse.birt.data.engine.impl.PreparedDataSourceQuery.execute(PreparedDataSourceQuery.java:164) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.execute(DataSetManager.java:320) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.getColumns(DataSetManager.java:260) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.getColumns(DataSetManager.java:196) at org.eclipse.birt.report.designer.internal.ui.util.DataSetManager.refresh(DataSetManager.java:160) at org.eclipse.birt.report.designer.internal.ui.views.data.DataViewTreeViewerPage$5.run(DataViewTreeViewerPage.java:491) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3323) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: org.eclipse.birt.report.data.oda.jdbc.JDBCException: Missing properties in Connection.open(Properties). at org.eclipse.birt.report.data.oda.jdbc.Connection.open(Connection.java:108) at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:230) at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:124) ... 35 more
data/org.eclipse.birt.report.data.oda.sampledb.ui/src/org/eclipse/birt/report/data/oda/sampledb/ui/SampleDataSetEditor.java
{
		
		Composite content = new Composite( parent, SWT.NONE );
		
		FillLayout layout = new FillLayout();
		content.setLayout( layout );
		Label txt = new Label( content, SWT.LEFT );
		txt.setText( Messages.formatMessage( "datasource.upgrade.msg",
				new Object[] { dataSourceDesign.getName( ) } ));
		
		return content;
	}
    /* (non-Javadoc)
     * @see org.eclipse.datatools.connectivity.oda.design.internal.ui.DataSetWizardPageCore#collectDataSetDesign(org.eclipse.datatools.connectivity.oda.design.DataSetDesign)
     */
    protected DataSetDesign collectDataSetDesign( DataSetDesign design )
	{
		
		
		
		 
		 
		
		this.datasetDesign.getDataSourceDesign( )
				.setOdaExtensionId( OdaJdbcDriver.Constants.DATA_SOURCE_ID );
		this.datasetDesign.setQueryText( "" );
		return this.datasetDesign;
	}
}