コード例 #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 String haveDefaultMapping() {
   return myMappings.haveDefaultMapping();
 }