CreateRequest request = getRequest( );  DesignElementHandle desginElementHandle = getDesignElementHandle( ); dataSetList = DEUtil.getDataSetList( desginElementHandle );  if ( IReportElementConstants.REPORT_ELEMENT_IMAGE.equalsIgnoreCase( (String) request.getNewObjectType( ) ) ) {  ImageBuilder dialog = new ImageBuilder( UIUtil.getDefaultShell( ), ImageBuilder.DLG_TITLE_NEW, dataSetList ); if ( Window.OK == dialog.open( ) ) { setModel( dialog.getResult( ) );    return super.preHandleMouseUp( ); } } return false;
ImageHandle dataHandle = DesignElementFactory.getInstance( ).newImage( null ); setModel( dataHandle ); return super.preHandleMouseUp( );
		public boolean preHandleMouseUp( )		{			CreateRequest request = getRequest( );			DesignElementHandle desginElementHandle = getDesignElementHandle( );			dataSetList = DEUtil.getDataSetList( desginElementHandle );			if ( IReportElementConstants.REPORT_ELEMENT_IMAGE.equalsIgnoreCase( (String) request.getNewObjectType( ) ) )			{				// Open the builder for new image				ImageBuilder dialog = new ImageBuilder( UIUtil.getDefaultShell( ),						ImageBuilder.DLG_TITLE_NEW,						dataSetList );				if ( Window.OK == dialog.open( ) )				{					setModel( dialog.getResult( ) );					// If the dialog popup, mouse up event will not be called					// automatically, call it explicit					return super.preHandleMouseUp( );				}			}			return false;		}