Bug 198774 Can not publish to template folder when set the preview image as thnmbnail image[00]
Description: Can not publish to template folder when set the preview image as thnmbnail image[00] Step: 1.New a template. 2.Set the Preview as thnmbnail image. 3.Publish the template to template folder Actual result: It hint that the preview image file does not exist. Expected result: The template can be publish to template folder when use the thnmbnail image.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardReportSettingPage.java
if ( ( !new File( imageFileName ).exists( ) )
					&& ( !new File( ReportPlugin.getDefault( )
							.getResourceFolder( ), imageFileName ).exists( ) )
					&& ( !new File( UIUtil.getFragmentDirectory( ),
							imageFileName ).exists( ) ) )
			{
				status = new Status( IStatus.ERROR,
						PLUGIN_ID,
						0,
						Messages.getString( "PublishTemplateAction.wizard.message.PreviewImageNotExist" ),
						null );
				previewImageStatus = status;
			}
			else if ( !checkExtensions( imageFileName ) )
			{
				status = new Status( IStatus.ERROR,
						PLUGIN_ID,
						0,
						Messages.getString( "PublishTemplateAction.wizard.message.PreviewImageNotValid" ),
						null );
				previewImageStatus = status;
			}
		}
	}
	private static boolean isTextEmpty( Text text )
	{
		String s = text.getText( );
		if ( ( s != null ) && ( s.trim( ).length( ) > 0 ) )
			return false;
		return true;