Пример #1
0
 public static void deleteProject(final IErlProject erlProject) throws CoreException {
   final IProject project = erlProject.getWorkspaceProject();
   final IPath location = project.getLocation();
   project.delete(true, null);
   if (location != null) {
     new File(location.toPortableString()).delete();
   }
   if (modulesAndIncludes != null) {
     final List<IErlModule> list = Lists.newArrayList(modulesAndIncludes);
     for (final IErlModule module : list) {
       if (ErlangEngine.getInstance().getModelUtilService().getProject(module) == erlProject) {
         deleteModule(module);
       }
     }
   }
   erlProject.dispose();
   if (projects != null) {
     projects.remove(ErlangEngine.getInstance().getModel().findProject(project));
   }
   final IErlModel model = ErlangEngine.getInstance().getModel();
   model.resourceChanged(null);
   model.open(null);
 }
Пример #2
0
 public static void deleteModules() throws CoreException {
   final List<IErlModule> list = Lists.newArrayList(modulesAndIncludes);
   for (final IErlModule module : list) {
     deleteModule(module);
   }
 }