use of com.intellij.cvsSupport2.config.ui.CvsConfigurationsListEditor in project intellij-community by JetBrains.
the class SelectCvsConfigurationPanel method editConfigurations.
public void editConfigurations() {
final CvsApplicationLevelConfiguration configuration = CvsApplicationLevelConfiguration.getInstance();
final CvsConfigurationsListEditor cvsConfigurationsListEditor = new CvsConfigurationsListEditor(new ArrayList<>(configuration.CONFIGURATIONS), myProject);
final CvsRootConfiguration selectedConfiguration = getSelectedConfiguration();
if (selectedConfiguration != null) {
cvsConfigurationsListEditor.selectConfiguration(selectedConfiguration);
}
if (cvsConfigurationsListEditor.showAndGet()) {
configuration.CONFIGURATIONS = cvsConfigurationsListEditor.getConfigurations();
fillModel(cvsConfigurationsListEditor.getSelectedConfiguration());
}
}
use of com.intellij.cvsSupport2.config.ui.CvsConfigurationsListEditor in project intellij-community by JetBrains.
the class CvsConfigurationsListEditor method reconfigureCvsRoot.
@Nullable
public static CvsRootConfiguration reconfigureCvsRoot(String root, Project project) {
final CvsApplicationLevelConfiguration configuration = CvsApplicationLevelConfiguration.getInstance();
final CvsRootConfiguration selectedConfig = configuration.getConfigurationForCvsRoot(root);
final ArrayList<CvsRootConfiguration> modifiableList = new ArrayList<>(configuration.CONFIGURATIONS);
final CvsConfigurationsListEditor editor = new CvsConfigurationsListEditor(modifiableList, project, true);
editor.select(selectedConfig);
if (editor.showAndGet()) {
configuration.CONFIGURATIONS = modifiableList;
return configuration.getConfigurationForCvsRoot(root);
} else {
return null;
}
}
use of com.intellij.cvsSupport2.config.ui.CvsConfigurationsListEditor 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();
}
}
Aggregations