• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java VcsConfigurableProvider类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.intellij.openapi.vcs.VcsConfigurableProvider的典型用法代码示例。如果您正苦于以下问题:Java VcsConfigurableProvider类的具体用法?Java VcsConfigurableProvider怎么用?Java VcsConfigurableProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

VcsConfigurableProvider类属于com.intellij.openapi.vcs包,在下文中一共展示了VcsConfigurableProvider类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: buildConfigurables

点赞 2

import com.intellij.openapi.vcs.VcsConfigurableProvider; //导入依赖的package包/类
@Override
protected Configurable[] buildConfigurables() {
  myGeneralPanel = new VcsGeneralConfigurationConfigurable(myProject, this);

  List<Configurable> result = new ArrayList<Configurable>();

  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)));
  }

  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()]);
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:35,
代码来源:VcsManagerConfigurable.java

示例2: buildConfigurables

点赞 2

import com.intellij.openapi.vcs.VcsConfigurableProvider; //导入依赖的package包/类
@Override
protected Configurable[] buildConfigurables() {
  myGeneralPanel = new VcsGeneralConfigurationPanel(myProject){
    @Override
    public void disposeUIResources() {
      super.disposeUIResources();
      myGeneralPanel = null;
    }
  };

  if (myMappings != null) {
    myGeneralPanel.updateAvailableOptions(myMappings.getActiveVcses());
    addListenerToGeneralPanel();
  }
  else {
    myGeneralPanel.updateAvailableOptions(Arrays.asList(ProjectLevelVcsManager.getInstance(myProject).getAllActiveVcss()));
  }

  List<Configurable> result = new ArrayList<Configurable>();

  result.add(myGeneralPanel);
  result.add(new VcsBackgroundOperationsConfigurationPanel(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)));
  }

  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()]);
}
 

开发者ID:lshain-android-source,
项目名称:tools-idea,
代码行数:49,
代码来源:VcsManagerConfigurable.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)