if ( input != null && input.size( ) > 0 )
if ( input != null && ( (List) input ).size( ) > 0 )
	protected void buildUI( )	{		this.setLayout( WidgetUtil.createGridLayout( 5 ) );		WidgetUtil.buildGridControl( this,				propertiesMap,				ReportDesignConstants.REPORT_DESIGN_ELEMENT,				ReportDesignHandle.EVENT_HANDLER_CLASS_PROP,				1,				400 );		Button browse = new Button( this, SWT.PUSH );		browse.setText( Messages.getString( "EventHandlerPage.Browse" ) );		browse.setLayoutData( new GridData( ) );		browse.addSelectionListener( new SelectionAdapter( ) {			public void widgetSelected( SelectionEvent e )			{				ClassFinder finder = new ClassFinder( );				String className = null;				if ( input != null && input.size( ) > 0 )				{//					if ( input.get( 0 ) instanceof ExtendedItemHandle//					{//						className = (String) ( EventHandlerWrapper.get( AttributeConstant.EVENT_HANDLER_CLASS_PROPERTY_KEY ) );//					}//					else 						if ( input.get( 0 ) instanceof DesignElementHandle )					{						className = EventHandlerWrapper.getEventHandlerClassName( (DesignElementHandle) input.get( 0 ) );					}				}				if ( className != null )				{					finder.setParentClassName( className );					GroupPropertyHandle handle = DEUtil.getMultiSelectionHandle( input )							.getPropertyHandle( ReportDesignHandle.EVENT_HANDLER_CLASS_PROP );					try					{						String finderClassName = finder.getFinderClassName( );						if(finderClassName != null && finderClassName.trim( ).length( ) > 0)						{							handle.setStringValue( finderClassName.trim( ) );						}											}					catch ( SemanticException e1 )					{						ExceptionHandler.handle( e1 );					}				}			}		} );		WidgetUtil.createGridPlaceholder( this, 2, true );	}