Bug 180864 Change Allow Null option in Cascading Group.[0705]
Description: Change Allow Null option in Cascading Group. Build number:2.2.0.v20070404 Steps to reproduce: 1. New a cascading group and add sub parameter. Expected result: Is Required option in cascading group definition dialog. Actual result: Allow null value option in Cascading Group definition dialog Error log:N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
private IStructuredContentProvider contentProvider = new IStructuredContentProvider( ) {
		public Object[] getElements( Object inputElement )
		{
			ArrayList elementsList = new ArrayList( inputParameterGroup.getParameters( )
					.getContents( ) );
			for ( Iterator iter = elementsList.iterator( ); iter.hasNext( ); )
			{
				ScalarParameterHandle handle = (ScalarParameterHandle) iter.next( );
				String[] columns = getDataSetColumns( handle, false );
				boolean found = false;
				for ( int i = 0; i < columns.length; i++ )
				{
					if ( DEUtil.getColumnExpression( columns[i] )
							.equals( handle.getValueExpr( ) ) )
					{
						found = true;
						break;
					}
				}
				if ( !found )
				{
					try
					{
						handle.setValueExpr( null );
					}
					catch ( SemanticException e )
					{
						ExceptionHandler.handle( e );
					}
				}