if (resourceName.equals("")) { problemType = PROBLEM_RESOURCE_EMPTY; problemMessage = NLS.bind(Messages.getString("WizardSaveAsPage.EmptyName"), resourceType); return false; }
if ( resourceName.equals( "" ) ) { problemType = PROBLEM_RESOURCE_EMPTY; problemMessage = Messages.getFormattedString( "WizardSaveAsPage.EmptyName", new Object[]{resourceType} ); return false; }
    protected boolean validateResourceName() {        String resourceName = resourceNameField.getText();        if (resourceName.equals("")) {//$NON-NLS-1$            problemType = PROBLEM_RESOURCE_EMPTY;            problemMessage = NLS.bind(Messages.getString("WizardSaveAsPage.EmptyName"), resourceType); //$NON-NLS-1$            return false;        }        if (!(new Path("")).isValidPath(resourceName)) { //$NON-NLS-1$            problemType = PROBLEM_NAME_INVALID;            problemMessage = NLS.bind(Messages.getString("WizardSaveAsPage.InvalidFileName"), resourceName); //$NON-NLS-1$            return false;        }        return true;    }