Bug 316695 Refactor data set editor pages' codes[26568]
Build Identifier: 20100610 Refactor data set editor pages' codes[26568]. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/DataSetParametersPage.java
{
		int index = viewer.getViewer( ).getTable( ).getSelectionIndex( );
		if ( index == -1 )
			return;
		DataSetParameterHandle handle = (DataSetParameterHandle) viewer.getViewer( )
				.getTable( )
				.getItem( index )
				.getData( );
		originalStructure = (DataSetParameter) handle.getStructure( ).copy( );
		doEdit( handle );
	}
	protected void doEdit( Object structureOrHandle )
	{
		ParameterInputDialog dlg = new ParameterInputDialog( structureOrHandle,
				isOdaDataSetHandle );
		if ( dlg.open( ) == Window.OK )
		{
			viewer.getViewer( ).refresh( );
			refreshMessage( );
			refreshLinkedReportParamStatus( );
		}
	}
	protected void refreshLinkedReportParamStatus( )
	{
		TableItem items[] = viewer.getViewer( ).getTable( ).getItems( );
		for ( int i = 0; i < items.length; i++ )
		{
			if ( items[i].getData( ) instanceof OdaDataSetParameterHandle )
			{
				OdaDataSetParameterHandle handle = (OdaDataSetParameterHandle) items[i].getData( );