String fileName = file.getName( ).toLowerCase( );
String fileName = resource.getName( ).toLowerCase( );
	public IStatus validate( Object[] selection )	{		int nSelected = selection.length;		String pluginId = ReportPlugin.REPORT_UI;		if ( nSelected == 0 || ( nSelected > 1 && multiSelect == false ) )		{			return EmptyStatus;		}		for ( int i = 0; i < selection.length; i++ )		{			Object curr = selection[i];			if ( curr instanceof File )			{				File file = (File) curr;				if ( acceptFolders == false && file.isDirectory( ) )				{					return EmptyStatus;				}				if ( ext != null )				{					boolean isCorrectExt = false;					String fileName = file.getName( ).toLowerCase( );					for ( int j = 0; j < ext.length; j++ )					{						if ( fileName.endsWith( ext[j].toLowerCase( ) ) )						{							isCorrectExt = true;							break;						}					}					if ( !isCorrectExt )					{						return new Status( IStatus.ERROR,								pluginId,								IStatus.ERROR,								extWrongMessage,								null );					}				}			}			else			{				return EmptyStatus;			}		}		return OKStatus;	}