String problemMessage = NLS.bind( IDEWorkbenchMessages.ResourceGroup_nameExists, getFileName()); IPath resourcePath = getContainerFullPath().append( getFileName()); if (workspace.getRoot().getFolder(resourcePath).exists()) { setErrorMessage(problemMessage);