parameterList.addAll( ( (ParameterGroupHandle) obj ) .getParameters( ).getContents( ) ); } } if ( newFilename.equals( inputHandle.getReportName( ) ) ) { for ( Iterator iter = inputHandle.paramBindingsIterator( ); iter .hasNext( ); ) { ParamBindingHandle handle = (ParamBindingHandle) iter .next( ); bindingList.add( handle.getStructure( ) );
for ( Iterator iter = inputHandle.paramBindingsIterator( ); iter.hasNext( ); ) { ParamBindingHandle handle = (ParamBindingHandle) iter.next( ); bindingList.add( handle.getStructure( ) ); }
	private void initParamterBindings( )	{		bindingList.clear( );		parameterList.clear( );		String errorMessage = null;		String newFilename = locationEditor.getText( ).trim( );		if ( newFilename.length( ) == 0 )		{			errorMessage = ERROR_MSG_REPORT_REQUIRED;		}		else		{			try			{				reportHandle = SessionHandleAdapter.getInstance( )						.getSessionHandle( ).openDesign( newFilename );			}			catch ( DesignFileException e )			{				try				{					reportHandle = SessionHandleAdapter.getInstance( )							.getSessionHandle( ).openDesign(									URIUtil.resolveAbsolutePath(											getBasePath( ), newFilename ) );				}				catch ( DesignFileException e1 )				{					errorMessage = ERROR_MSG_INVALID_REPORT;				}			}			if ( reportHandle != null )			{				for ( Iterator iter = reportHandle.getAllParameters( )						.iterator( ); iter.hasNext( ); )				{					Object obj = iter.next( );					if ( obj instanceof ParameterHandle )					{						parameterList.add( obj );					}					else if ( obj instanceof ParameterGroupHandle )					{						parameterList.addAll( ( (ParameterGroupHandle) obj )								.getParameters( ).getContents( ) );					}				}				if ( newFilename.equals( inputHandle.getReportName( ) ) )				{					for ( Iterator iter = inputHandle.paramBindingsIterator( ); iter							.hasNext( ); )					{						ParamBindingHandle handle = (ParamBindingHandle) iter								.next( );						bindingList.add( handle.getStructure( ) );					}				}			}		}		if ( errorMessage != null )		{			messageLine.setText( errorMessage );			messageLine.setImage( ERROR_ICON );		}		else		{			messageLine.setText( "" ); //$NON-NLS-1$			messageLine.setImage( null );		}		paramBindingTable.refresh( );		paramBindingTable.getTable( ).setEnabled( !parameterList.isEmpty( ) );		updateButtons( );	}