use of com.intellij.cvsSupport2.connections.IDEARootFormatter in project intellij-community by JetBrains.
the class CvsEntriesManager method createConnectionSettingsOn.
public CvsConnectionSettings createConnectionSettingsOn(String cvsRoot) {
if (!myStringToSettingsMap.containsKey(cvsRoot)) {
final CvsRootConfiguration rootConfiguration = myApplicationLevelConfiguration.getConfigurationForCvsRoot(cvsRoot);
CvsConnectionSettings settings = new IDEARootFormatter(rootConfiguration).createConfiguration();
myStringToSettingsMap.put(cvsRoot, settings);
}
return myStringToSettingsMap.get(cvsRoot);
}
use of com.intellij.cvsSupport2.connections.IDEARootFormatter in project intellij-community by JetBrains.
the class CvsServicesImpl method createCvsVersionOn.
private static ComparableVcsRevisionOnOperation createCvsVersionOn(CvsModule module, Project project) {
final CvsRootConfiguration rootConfiguration = CvsApplicationLevelConfiguration.getInstance().getConfigurationForCvsRoot(module.getRepository().getStringRepresentation());
CvsConnectionSettings env = new IDEARootFormatter(rootConfiguration).createConfiguration();
GetFileContentOperation operation = new GetFileContentOperation(new File(module.getPathInCvs()), env, new SimpleRevision(module.getRevision()));
return new ComparableVcsRevisionOnOperation(operation, project);
}
Aggregations