Bug 212497 Need api to get all referencable report item with cube
Need model provide new api to return all referencable report items for dataset or cube respectively. For instance: getAvailableDataSetBindingReferenceList(); getAvailableCubeBindingReferenceList(); also keep current api: getAvailableDataBindingReferenceList().
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportItemDataRefTest.java
public void testEstablishDataGroup( ) throws Exception
	{
		openDesign( "DataGroupRef_2.xml" ); 
		TableHandle table2 = (TableHandle) designHandle
				.findElement( "myTable2" ); 
		TableHandle table1 = (TableHandle) designHandle
				.findElement( "myTable1" ); 
		ListHandle list1 = (ListHandle) designHandle.findElement( "myList1" ); 
		CommandStack cmdStack = designHandle.getCommandStack( );
		cmdStack.startTrans( null );
		table2.setDataBindingReference( table1 );
		list1.setDataBindingReference( table1 );
		cmdStack.commit( );
		save( );
		assertTrue( compareFile( "SetDataGroupRef_golden.xml" ) ); 
		designHandle.getCommandStack( ).undo( );
		save( );
		assertTrue( compareFile( "SetDataGroupRefUndo_golden.xml" ) ); 
		designHandle.getCommandStack( ).redo( );
		save( );
		assertTrue( compareFile( "SetDataGroupRefRedo_golden.xml" ) ); 
		cmdStack.startTrans( null );
		table2.setDataBindingReference( null );
		list1.setDataBindingReference( null );
		cmdStack.commit( );
		save( );
		assertTrue( compareFile( "SetDataGroupRefNull_golden.xml" ) ); 
		designHandle.getCommandStack( ).undo( );
		save( );
		assertTrue( compareFile( "SetDataGroupRefNullUndo_golden.xml" ) );