public void setAutoDirectoryMapping(String path, String activeVcsName) { final List<VirtualFile> defaultRoots = myMappings.getDefaultRoots(); if (defaultRoots.size() == 1 && StringUtil.isEmpty(myMappings.haveDefaultMapping())) { myMappings.removeDirectoryMapping(new VcsDirectoryMapping("", "")); } myMappings.setMapping(path, activeVcsName); }
public void removeDirectoryMapping(VcsDirectoryMapping mapping) { myMappings.removeDirectoryMapping(mapping); }