コード例 #1
0
 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);
 }
コード例 #2
0
 @Override
 public void setDirectoryMapping(final String path, final String activeVcsName) {
   if (myMappingsLoaded)
     return; // ignore per-module VCS settings if the mapping table was loaded from .ipr
   myHaveLegacyVcsConfiguration = true;
   myMappings.setMapping(FileUtil.toSystemIndependentName(path), activeVcsName);
 }