protected Solution addSolution(String name, VirtualFile[] roots) { SolutionDescriptor sd = new SolutionDescriptor(); sd.setNamespace(name); sd.setId(ModuleId.foreign(name)); addModelRoots(sd, roots); return StubSolution.newInstance(sd, this); }
protected void removeSolution(String name) { ModuleReference ref = new ModuleReference(null, ModuleId.foreign(name)); MPSModuleRepository repository = MPSModuleRepository.getInstance(); IModule m = ModuleRepositoryFacade.getInstance().getModule(ref); if (m == null) { return; } repository.unregisterModule(m, this); }
protected void removeSolution(String name) { SModuleReference ref = new jetbrains.mps.project.structure.modules.ModuleReference(null, ModuleId.foreign(name)); MPSModuleRepository repository = MPSModuleRepository.getInstance(); SModule m = ModuleRepositoryFacade.getInstance().getModule(ref); if (m == null) { return; } repository.unregisterModule(m, this); }