if (!(new Path("")).isValidPath(resourceName)) { problemType = PROBLEM_NAME_INVALID; problemMessage = NLS.bind(Messages.getString("WizardSaveAsPage.InvalidFileName"), resourceName); return false; } return true; }
if ( !( new Path( "" ) ).isValidPath( resourceName ) ) { problemType = PROBLEM_NAME_INVALID; problemMessage = Messages .getFormattedString( "WizardSaveAsPage.InvalidFileName", new Object[]{resourceName} ); return false; } return true; }
    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;    }