Esempio n. 1
0
 /**
  * Delete given project with content.
  *
  * @param project
  * @throws CoreException
  */
 public static void delete(final IProject project) throws CoreException {
   delete(project, true);
 }
Esempio n. 2
0
 /**
  * Delete project by name.
  *
  * @param projectName
  * @throws CoreException
  */
 public static void deleteProject(String projectName) throws CoreException {
   IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
   IProject project = root.getProject(projectName);
   if (project.exists()) delete(project);
 }