Esempio n. 1
0
 public static void initProjects() throws CoreException {
   projects = Lists.newArrayList();
   final IErlModel model = ErlangEngine.getInstance().getModel();
   model.open(null);
   final List<IErlElement> children = model.getChildren();
   for (final IErlElement child : children) {
     if (child instanceof IErlProject) {
       final IErlProject project = (IErlProject) child;
       if (project.getName().startsWith("testproject")) {
         deleteProject(project);
       }
     }
   }
 }
Esempio n. 2
0
 public static void deleteProjects() throws CoreException {
   final List<IErlProject> list = Lists.newArrayList(projects);
   for (final IErlProject project : list) {
     deleteProject(project);
   }
 }