Search in sources :

Example 1 with VcsConfigurableProvider

use of com.intellij.openapi.vcs.VcsConfigurableProvider in project intellij-community by JetBrains.

the class VcsManagerConfigurable method buildConfigurables.

@Override
protected Configurable[] buildConfigurables() {
    myGeneralPanel = new VcsGeneralConfigurationConfigurable(myProject, this);
    List<Configurable> result = new ArrayList<>();
    result.add(myGeneralPanel);
    result.add(new VcsBackgroundOperationsConfigurable(myProject));
    if (!myProject.isDefault()) {
        result.add(new IgnoredSettingsPanel(myProject));
    }
    /*if (!myProject.isDefault()) {
      result.add(new CacheSettingsPanel(myProject));
    }*/
    result.add(new IssueNavigationConfigurationPanel(myProject));
    if (!myProject.isDefault()) {
        result.add(new ChangelistConflictConfigurable(ChangeListManagerImpl.getInstanceImpl(myProject)));
    }
    result.add(new ShelfProjectConfigurable(myProject));
    for (VcsConfigurableProvider provider : VcsConfigurableProvider.EP_NAME.getExtensions()) {
        final Configurable configurable = provider.getConfigurable(myProject);
        if (configurable != null) {
            result.add(configurable);
        }
    }
    VcsDescriptor[] vcses = ProjectLevelVcsManager.getInstance(myProject).getAllVcss();
    for (VcsDescriptor vcs : vcses) {
        result.add(createVcsConfigurableWrapper(vcs));
    }
    return result.toArray(new Configurable[result.size()]);
}
Also used : VcsConfigurableProvider(com.intellij.openapi.vcs.VcsConfigurableProvider) ArrayList(java.util.ArrayList) Configurable(com.intellij.openapi.options.Configurable) SearchableConfigurable(com.intellij.openapi.options.SearchableConfigurable) ChangelistConflictConfigurable(com.intellij.openapi.vcs.changes.conflicts.ChangelistConflictConfigurable) IgnoredSettingsPanel(com.intellij.openapi.vcs.changes.ui.IgnoredSettingsPanel) ChangelistConflictConfigurable(com.intellij.openapi.vcs.changes.conflicts.ChangelistConflictConfigurable) VcsDescriptor(com.intellij.openapi.vcs.impl.VcsDescriptor)

Aggregations

Configurable (com.intellij.openapi.options.Configurable)1 SearchableConfigurable (com.intellij.openapi.options.SearchableConfigurable)1 VcsConfigurableProvider (com.intellij.openapi.vcs.VcsConfigurableProvider)1 ChangelistConflictConfigurable (com.intellij.openapi.vcs.changes.conflicts.ChangelistConflictConfigurable)1 IgnoredSettingsPanel (com.intellij.openapi.vcs.changes.ui.IgnoredSettingsPanel)1 VcsDescriptor (com.intellij.openapi.vcs.impl.VcsDescriptor)1 ArrayList (java.util.ArrayList)1