Search in sources :

Example 16 with CvsRootConfiguration

use of com.intellij.cvsSupport2.config.CvsRootConfiguration in project intellij-community by JetBrains.

the class CvsConfigurationsListEditor method getConfigurations.

public List<CvsRootConfiguration> getConfigurations() {
    final ArrayList<CvsRootConfiguration> result = new ArrayList<>();
    final Enumeration each = myModel.elements();
    while (each.hasMoreElements()) result.add((CvsRootConfiguration) each.nextElement());
    return result;
}
Also used : Enumeration(java.util.Enumeration) ArrayList(java.util.ArrayList) CvsRootConfiguration(com.intellij.cvsSupport2.config.CvsRootConfiguration)

Example 17 with CvsRootConfiguration

use of com.intellij.cvsSupport2.config.CvsRootConfiguration in project intellij-community by JetBrains.

the class SshConnectionSettings method createSshConnection.

public static IConnection createSshConnection(CvsRootConfiguration cvsRootConfiguration, CvsRootData settings, SshSettings sshConfiguration) {
    int timeout = CvsApplicationLevelConfiguration.getInstance().TIMEOUT * 1000;
    ProxySettings proxy_settings = cvsRootConfiguration.PROXY_SETTINGS;
    return CvsConnectionUtil.createSshConnection(settings, sshConfiguration, proxy_settings, SSHPasswordProviderImpl.getInstance(), timeout);
}
Also used : ProxySettings(com.intellij.cvsSupport2.config.ProxySettings)

Example 18 with CvsRootConfiguration

use of com.intellij.cvsSupport2.config.CvsRootConfiguration in project intellij-community by JetBrains.

the class ConfigureCvsRootsAction method actionPerformed.

public void actionPerformed(AnActionEvent e) {
    final CvsApplicationLevelConfiguration configuration = CvsApplicationLevelConfiguration.getInstance();
    final List<CvsRootConfiguration> configurations = configuration.CONFIGURATIONS;
    final CvsConfigurationsListEditor cvsConfigurationsListEditor = new CvsConfigurationsListEditor(new ArrayList<>(configurations), e.getProject());
    if (cvsConfigurationsListEditor.showAndGet()) {
        configuration.CONFIGURATIONS = cvsConfigurationsListEditor.getConfigurations();
    }
}
Also used : CvsApplicationLevelConfiguration(com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration) CvsConfigurationsListEditor(com.intellij.cvsSupport2.config.ui.CvsConfigurationsListEditor) CvsRootConfiguration(com.intellij.cvsSupport2.config.CvsRootConfiguration)

Aggregations

CvsRootConfiguration (com.intellij.cvsSupport2.config.CvsRootConfiguration)14 CvsApplicationLevelConfiguration (com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration)5 File (java.io.File)3 ArrayList (java.util.ArrayList)3 CvsConnectionSettings (com.intellij.cvsSupport2.connections.CvsConnectionSettings)2 IDEARootFormatter (com.intellij.cvsSupport2.connections.IDEARootFormatter)2 ProxySettings (com.intellij.cvsSupport2.config.ProxySettings)1 CvsConfigurationsListEditor (com.intellij.cvsSupport2.config.ui.CvsConfigurationsListEditor)1 CvsRootException (com.intellij.cvsSupport2.connections.CvsRootException)1 CvsLoginWorker (com.intellij.cvsSupport2.connections.login.CvsLoginWorker)1 CvsFile (com.intellij.cvsSupport2.cvsBrowser.CvsFile)1 LoginPerformer (com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer)1 GetFileContentOperation (com.intellij.cvsSupport2.cvsoperations.cvsContent.GetFileContentOperation)1 SimpleRevision (com.intellij.cvsSupport2.cvsoperations.dateOrRevision.SimpleRevision)1 ComparableVcsRevisionOnOperation (com.intellij.cvsSupport2.history.ComparableVcsRevisionOnOperation)1 MigrateRootDialog (com.intellij.cvsSupport2.ui.MigrateRootDialog)1 AccessToken (com.intellij.openapi.application.AccessToken)1 ProcessCanceledException (com.intellij.openapi.progress.ProcessCanceledException)1 ProgressIndicator (com.intellij.openapi.progress.ProgressIndicator)1 Task (com.intellij.openapi.progress.Task)1