Bug 156469 Should not new a file that is not a *.properties on resource file
Desctiption: Should not create a file that is not a *.properties on resource file when the resource folder has not any other *.properties Step: 1.Set the resource folder path is blank. 2.New a report project. 3.New a report design. 4.Click the blank area on layout. 5.Select Property Editor - General - Resources 6.Click Add to add a resource file. 7.The browse resource file is pop up and select Resource Folder. 8.Input any word in text field. Excepted result: It prompt that the file name must end with .properties Actual result: Click OK and the file is create.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/resource/NewResourceFileDialog.java
rt.setLayoutData( new GridData( GridData.FILL_BOTH ) );
		Composite pane = new Composite( rt, 0 );
		pane.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		pane.setLayout( new GridLayout( 2, false ) );
		pane.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		Label lb = new Label( pane, 0 );
		lb.setText( Messages.getString( "NewResourceFileDialog.label.NewFile" ) );
		text = new Text( pane, SWT.BORDER );
		text.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		text.addModifyListener( new ModifyListener( ) {
			public void modifyText( ModifyEvent e )
			{
				newFileName = text.getText( );
				updateOKStatus( );
			}
		} );
		configViewer( );
		UIUtil.bindHelp( parent,
				IHelpContextIds.NEW_ADD_RESOURCE_FILES_DIALOG_ID );
		return rt;
	}
	private void configViewer( )
	{
		getTreeViewer( ).addSelectionChangedListener( new ISelectionChangedListener( ) {
			public void selectionChanged( SelectionChangedEvent event )
			{
				Object object = ( (StructuredSelection) event.getSelection( ) ).getFirstElement( );
				if ( object instanceof ResourceEntry )
				{
					ResourceEntry entry = (ResourceEntry) object;