Ejemplo n.º 1
0
 /**
  * Delete given project with content.
  *
  * @param project
  * @throws CoreException
  */
 public static void delete(final IProject project) throws CoreException {
   delete(project, true);
 }
Ejemplo 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);
 }