Bug 157256 [smoke][regression] fail to locate existing resource file
steps to reproduce: - create a report, select the report - go to property editor, choose resources - add a resource file, say key.properties under resource folder, click on ok - notice /key is displayed in the resource file text box - switch to report layout - add a label item, edit its localization, click on add expected behavior: - key.properties can be located actual behavior: - failed to so, however after i removed "/" in front of "key" in resource file text box, it worked out fine.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/resource/NewResourceFileDialog.java
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ISelectionStatusValidator;
/**
 * A dialog which can browser all properties in BIRT resource folder. User can
 * select a properties or enter new file name to creat a new one.
 * 
 */
public class NewResourceFileDialog extends ResourceFileFolderSelectionDialog
{
	private Text text;
	private String ext = ".properties"; 
	protected String newFileName = ""; 
	private Status OKStatus = new Status( IStatus.OK,
			ReportPlugin.REPORT_UI,
			IStatus.OK,
			"", null ); 
	private Status ErrorStatus = new Status( IStatus.ERROR,
			ReportPlugin.REPORT_UI,
			IStatus.ERROR,
			Messages.getString( "NewResourceFileDialog.ErrorMessage" ), 
			null );
	private Status ErrorStatusNoSelection = new Status( IStatus.ERROR,
			ReportPlugin.REPORT_UI,
			IStatus.ERROR,
			Messages.getString( "" ), 
			null );
	private class Validator implements ISelectionStatusValidator