Search in sources :

Example 1 with ClientEnvironment

use of org.netbeans.lib.cvsclient.ClientEnvironment in project intellij-community by JetBrains.

the class CvsCommandOperation method createEnvironment.

private IClientEnvironment createEnvironment(IConnection connection, final CvsRootProvider root, UpdatedFilesManager mergedFilesCollector, CvsExecutionEnvironment cvsExecutionEnv) {
    final File localRoot = getLocalRootFor(root);
    final File adminRoot = getAdminRootFor(root);
    LOG.assertTrue(localRoot != null, getClass().getName());
    LOG.assertTrue(adminRoot != null, getClass().getName());
    return new ClientEnvironment(connection, localRoot, adminRoot, root.getCvsRoot(), createLocalFileReader(), createLocalFileWriter(root.getCvsRootAsString(), mergedFilesCollector, cvsExecutionEnv), myAdminReader, myAdminWriter, getIgnoreFileFilter(), new FileReadOnlyHandler(), CvsApplicationLevelConfiguration.getCharset());
}
Also used : FileReadOnlyHandler(com.intellij.cvsSupport2.javacvsImpl.FileReadOnlyHandler) ClientEnvironment(org.netbeans.lib.cvsclient.ClientEnvironment) IClientEnvironment(org.netbeans.lib.cvsclient.IClientEnvironment) VirtualFile(com.intellij.openapi.vfs.VirtualFile) File(java.io.File)

Aggregations

FileReadOnlyHandler (com.intellij.cvsSupport2.javacvsImpl.FileReadOnlyHandler)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 File (java.io.File)1 ClientEnvironment (org.netbeans.lib.cvsclient.ClientEnvironment)1 IClientEnvironment (org.netbeans.lib.cvsclient.IClientEnvironment)1