if ( isTextEmpty( nameText ) )
if ( type == PublishLibraryWizard.HAVE_NO_HANDLE && isTextEmpty( sourceFileText ) ) { status = new Status( IStatus.ERROR, PLUGIN_ID, 0, Messages.getString( "PublishLibraryDialog.Message.SourceFileEmpty" ), null ); } else if ( type == PublishLibraryWizard.HAVE_NO_HANDLE && ( new File( sourceFileText.getText( ) ).isDirectory( ) || !new File( sourceFileText.getText( ) ).exists( ) ) ) { status = new Status( IStatus.ERROR, PLUGIN_ID, 0, Messages.getFormattedString( "PublishLibraryDialog.Message.SourceFileNotFound",new String[]{sourceFileText.getText( )} ), null ); } else if ( isTextEmpty( nameText ) )
	public void checkStatus(int type )	{		// Initialize a variable with the no error status		Status status = null;		if(type ==  PublishLibraryWizard.HAVE_NO_HANDLE )		{			status = new Status( IStatus.OK, PLUGIN_ID, 0, PAGE_DESC2, null );		}else		{			status = new Status( IStatus.OK, PLUGIN_ID, 0, PAGE_DESC, null );		}						if ( isTextEmpty( nameText ) )		{			status = new Status( IStatus.ERROR,					PLUGIN_ID,					0,					Messages.getString( "PublishLibraryDialog.Message.FileNameEmpty" ),					null );		}		else if ( !nameText.getText( ).endsWith( ".rptlibrary" ) )		{			status = new Status( IStatus.ERROR,					PLUGIN_ID,					0,					Messages.getString( "PublishLibraryDialog.Message.FileNameError" ),					null );		}		else if ( isTextEmpty( folderText ) )		{			status = new Status( IStatus.ERROR,					PLUGIN_ID,					0,					Messages.getString( "PublishLibraryDialog.Message.FolderEmpty" ),					null );		}				if(type == PublishLibraryWizard.HAVE_NO_HANDLE && isTextEmpty(sourceFileText))		{			status = new Status( IStatus.ERROR,					PLUGIN_ID,					0,					Messages.getString( "PublishLibraryDialog.Message.SourceFileEmpty" ),					null );		}				pageStatus = status;		// Show the most serious error		applyToStatusLine( pageStatus );		getWizard( ).getContainer( ).updateButtons( );	}