DataSetColumnBindingsFormHandleProvider provider = new DataSetColumnBindingsFormHandleProvider( ); provider.setBindingObject( table ); provider.generateAllBindingColumns( );
		public boolean preHandleMouseUp( )		{			CreateRequest request = getRequest( );			if ( IReportElementConstants.REPORT_ELEMENT_TABLE.equalsIgnoreCase( (String) request.getNewObjectType( ) ) )			{				TableOptionDialog dlg = new TableOptionDialog( UIUtil.getDefaultShell( ),						true );				if ( dlg.open( ) == Window.OK						&& dlg.getResult( ) instanceof Object[] )				{					Object[] data = (Object[]) dlg.getResult( );					// String name = ReportPlugin.getDefault().getCustomName(					// ReportDesignConstants.TABLE_ITEM);					//										// TableHandle table = SessionHandleAdapter.getInstance( )					// .getReportDesignHandle( )					// .getElementFactory( )					// .newTableItem( name, data[1], 1, data[0], 1 );					TableHandle table = DesignElementFactory.getInstance( )							.newTableItem( null,									( (Integer) data[1] ).intValue( ),									1,									( (Integer) data[0] ).intValue( ),									1 );					InsertInLayoutUtil.setInitWidth( table );					if ( data[2] != null )					{						try						{							DataSetHandle dataSet = SessionHandleAdapter.getInstance( )									.getReportDesignHandle( )									.findDataSet( data[2].toString( ) );							( (ReportItemHandle) table ).setDataSet( dataSet );						}						catch ( Exception e )						{							ExceptionHandler.handle( e );						}					}					setModel( table );					return super.preHandleMouseUp( );				}			}			return false;		}