use of com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration in project intellij-community by JetBrains.
the class CvsConfigurationPanel method updateFrom.
public void updateFrom(CvsConfiguration config, CvsApplicationLevelConfiguration appLevelConfiguration) {
myConfigurations = new ArrayList<>(appLevelConfiguration.CONFIGURATIONS);
myShowOutput.setSelected(config.SHOW_OUTPUT);
myMakeNewFilesReadOnly.setSelected(config.MAKE_NEW_FILES_READONLY);
myOnFileMergedWithConflictGroup[config.SHOW_CORRUPTED_PROJECT_FILES].setSelected(true);
myDefaultTextFileKeywordSubstitution.removeAllItems();
for (final KeywordSubstitutionWrapper keywordSubstitution : KeywordSubstitutionWrapper.values()) {
myDefaultTextFileKeywordSubstitution.addItem(keywordSubstitution);
}
myDefaultTextFileKeywordSubstitution.setSelectedItem(KeywordSubstitutionWrapper.getValue(config.DEFAULT_TEXT_FILE_SUBSTITUTION));
}
use of com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration 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.CvsApplicationLevelConfiguration 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