/** * Create a folder relative to the project based on aProjectRelativePathString. * * @param aProjectRelativePath * @return * @throws CoreException * * @since 1.0.0 */ public IFolder createFolder(IPath aProjectRelativePath) throws CoreException { if (aProjectRelativePath != null && !aProjectRelativePath.isEmpty()) { IFolder folder = getWorkspace().getRoot().getFolder(getProjectPath().append(aProjectRelativePath)); if (!folder.exists()) { ProjectUtilities.ensureContainerNotReadOnly(folder); folder.create(true, true, null); } return folder; } return null; }