• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ChangeListManagerImpl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: testBookmarkLineRemove

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
public void testBookmarkLineRemove() throws IOException {
  List<ComponentAdapter> adapters = getProject().getPicoContainer().getComponentAdaptersOfType(ChangeListManagerImpl.class);
  System.out.println(adapters.size() + " adapters:");
  for (ComponentAdapter adapter : adapters) {
    System.out.println(adapter);
  }

  @NonNls String text =
    "public class Test {\n" +
    "    public void test() {\n" +
    "        int i = 1;\n" +
    "    }\n" +
    "}";
  init(text, TestFileType.TEXT);

  addBookmark(2);
  Document document = myEditor.getDocument();
  myEditor.getSelectionModel().setSelection(document.getLineStartOffset(2) - 1, document.getLineEndOffset(2));
  delete();
  assertTrue(getManager().getValidBookmarks().isEmpty());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:BookmarkManagerTest.java


示例2: postStartupActivity

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Override
public void postStartupActivity(@NotNull Project project) {
  final Application application = ApplicationManager.getApplication();
  if (application.isHeadlessEnvironment() || application.isUnitTestMode()) {
    return;
  }

  List<VirtualFile> changedFiles = findVirtualFiles(myChangedFiles);
  if (!changedFiles.isEmpty()) {
    EditAction.editFilesAndShowErrors(project, changedFiles);
  }

  final List<VirtualFile> createdFiles = findVirtualFiles(myCreatedFiles);
  if (containsFilesUnderVcs(createdFiles, project)) {
    final VcsShowConfirmationOptionImpl option = new VcsShowConfirmationOptionImpl("", "", "", "", "");
    final Collection<VirtualFile> selected = AbstractVcsHelper.getInstance(project)
      .selectFilesToProcess(createdFiles, "Files Created", "Select files to be added to version control", null, null, option);
    if (selected != null && !selected.isEmpty()) {
      final ChangeListManagerImpl changeListManager = ChangeListManagerImpl.getInstanceImpl(project);
      changeListManager.addUnversionedFiles(changeListManager.getDefaultChangeList(), new ArrayList<VirtualFile>(selected));
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:ConversionResultImpl.java


示例3: addPantsProjectIgnoredDirs

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
/**
 * This will add buildroot/.idea, buildroot/.pants.d to Version Control -> Ignored Files.
 * This is currently impossible to test because {@link com.intellij.openapi.externalSystem.test.ExternalSystemTestCase}
 * put project file in a temp dir unrelated to where the repo resides.
 * TODO: make sure it reflects on GUI immediately without a project reload.
 */
private void addPantsProjectIgnoredDirs() {
  PantsUtil.findBuildRoot(myProject).ifPresent(
    buildRoot -> {
      ChangeListManagerImpl clm = ChangeListManagerImpl.getInstanceImpl(myProject);

      String pathToIgnore = buildRoot.getPath() + File.separator + ".idea";
      clm.addDirectoryToIgnoreImplicitly(pathToIgnore);

      PantsOptions.getPantsOptions(myProject).map(optionObj -> optionObj.get(PantsConstants.PANTS_OPTION_PANTS_WORKDIR))
        .ifPresent(optionString -> optionString.ifPresent(
          clm::addDirectoryToIgnoreImplicitly
        ));
    }
  );
}
 
开发者ID:pantsbuild,项目名称:intellij-pants-plugin,代码行数:22,代码来源:PantsProjectComponentImpl.java


示例4: addUnversioned

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
public static boolean addUnversioned(@Nonnull Project project,
                                     @Nonnull List<VirtualFile> files,
                                     @Nonnull Condition<FileStatus> unversionedFileCondition,
                                     @Nullable ChangesBrowserBase browser) {
  boolean result = true;

  if (!files.isEmpty()) {
    FileDocumentManager.getInstance().saveAllDocuments();

    @SuppressWarnings("unchecked") Consumer<List<Change>> consumer = browser == null ? null : changes -> {
      browser.rebuildList();
      browser.getViewer().excludeChanges((List)files);
      browser.getViewer().includeChanges((List)changes);
    };
    ChangeListManagerImpl manager = ChangeListManagerImpl.getInstanceImpl(project);
    LocalChangeList targetChangeList = browser == null ? manager.getDefaultChangeList() : (LocalChangeList)browser.getSelectedChangeList();
    List<VcsException> exceptions = manager.addUnversionedFiles(targetChangeList, files, unversionedFileCondition, consumer);

    result = exceptions.isEmpty();
  }

  return result;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:24,代码来源:ScheduleForAdditionAction.java


示例5: isChangeNotTrackedForFile

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Override
public boolean isChangeNotTrackedForFile(@NotNull Project project, @NotNull PsiFile file) {
  boolean isUnderVcs = VcsUtil.isFileUnderVcs(project, VcsUtil.getFilePath(file.getVirtualFile()));
  if (!isUnderVcs) return true;

  ChangeListManagerImpl changeListManager = ChangeListManagerImpl.getInstanceImpl(project);
  List<VirtualFile> unversionedFiles = changeListManager.getUnversionedFiles();
  if (unversionedFiles.contains(file.getVirtualFile())) {
    return true;
  }

  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:VcsAwareFormatChangedTextUtil.java


示例6: getUniqueName

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@SuppressWarnings({"HardCodedStringLiteral"})
private static String getUniqueName(final Project project) {
  int unnamedcount = 0;
  for (ChangeList list : ChangeListManagerImpl.getInstanceImpl(project).getChangeListsCopy()) {
    if (list.getName().startsWith("Unnamed")) {
      unnamedcount++;
    }
  }

  return unnamedcount == 0 ? "Unnamed" : "Unnamed (" + unnamedcount + ")";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:AddChangeListAction.java


示例7: actionPerformed

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
public void actionPerformed(@NotNull AnActionEvent e) {
  final List<VirtualFile> unversionedFiles = getUnversionedFiles(e);
  if (unversionedFiles.isEmpty()) {
    return;
  }
  FileDocumentManager.getInstance().saveAllDocuments();
  final ChangeListManagerImpl changeListManager = ChangeListManagerImpl.getInstanceImpl(e.getData(CommonDataKeys.PROJECT));
  changeListManager.addUnversionedFiles(changeListManager.getDefaultChangeList(), unversionedFiles, new Condition<FileStatus>() {
    @Override
    public boolean value(FileStatus status) {
      return isStatusForAddition(status);
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ScheduleForAdditionAction.java


示例8: IgnoredSettingsPanel

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
public IgnoredSettingsPanel(Project project) {
  myList = new JBList();
  myList.setCellRenderer(new MyCellRenderer());
  myList.getEmptyText().setText(VcsBundle.message("no.ignored.files"));

  myProject = project;
  myChangeListManager = ChangeListManagerImpl.getInstanceImpl(myProject);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:IgnoredSettingsPanel.java


示例9: ChangelistConflictDialog

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
public ChangelistConflictDialog(Project project, List<ChangeList> changeLists, List<VirtualFile> conflicts) {
  super(project);
  myProject = project;

  setTitle("Resolve Changelist Conflict");

  myFileList.setCellRenderer(new FileListRenderer());
  myFileList.setModel(new CollectionListModel(conflicts));

  ChangeListManagerImpl manager = ChangeListManagerImpl.getInstanceImpl(myProject);
  ChangelistConflictResolution resolution = manager.getConflictTracker().getOptions().LAST_RESOLUTION;

  if (changeLists.size() > 1) {
    mySwitchToChangelistRadioButton.setEnabled(false);
    if (resolution == ChangelistConflictResolution.SWITCH) {
      resolution = ChangelistConflictResolution.IGNORE;
    }
  }
  mySwitchToChangelistRadioButton.setText(VcsBundle.message("switch.to.changelist", changeLists.iterator().next().getName()));
  myMoveChangesToActiveRadioButton.setText(VcsBundle.message("move.to.changelist", manager.getDefaultChangeList().getName()));
  
  switch (resolution) {

    case SHELVE:
      myShelveChangesRadioButton.setSelected(true);
      break;
    case MOVE:
      myMoveChangesToActiveRadioButton.setSelected(true);
      break;
    case SWITCH:
      mySwitchToChangelistRadioButton.setSelected(true) ;
      break;
    case IGNORE:
      myIgnoreRadioButton.setSelected(true);
      break;
  }
  init();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:39,代码来源:ChangelistConflictDialog.java


示例10: createLeftSideActions

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@NotNull
@Override
protected Action[] createLeftSideActions() {
  return new Action[] { new AbstractAction("&Configure...") {
    public void actionPerformed(ActionEvent e) {
      ChangeListManagerImpl manager = (ChangeListManagerImpl)ChangeListManager.getInstance(myProject);
      ShowSettingsUtil.getInstance().editConfigurable(myPanel, new ChangelistConflictConfigurable(manager));
    }
  }};
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ChangelistConflictDialog.java


示例11: tracker

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
private static BooleanOptionDescription tracker(final Project project, String option, String field) {
  return new PublicFieldBasedOptionDescription(option, "project.propVCSSupport.ChangelistConflict", field) {
    @Override
    public Object getInstance() {
      return ChangeListManagerImpl.getInstanceImpl(project).getConflictTracker().getOptions();
    }

    @Override
    protected void fireUpdated() {
      ChangeListManagerImpl.getInstanceImpl(project).getConflictTracker().optionsChanged();
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:VcsOptionsTopHitProvider.java


示例12: buildConfigurables

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的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


示例13: setUp

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Override
@Before
public void setUp() throws Exception {
  //System.setProperty(FileWatcher.PROPERTY_WATCHER_DISABLED, "false");
  super.setUp();

  clManager = (ChangeListManagerImpl) ChangeListManager.getInstance(myProject);
  myVcsDirtyScopeManager = VcsDirtyScopeManager.getInstance(myProject);

  enableSilentOperation(VcsConfiguration.StandardConfirmation.ADD);
  enableSilentOperation(VcsConfiguration.StandardConfirmation.REMOVE);
  myVcs = SvnVcs.getInstance(myProject);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:SvnExternalCommitNoticedTest.java


示例14: testModificationAndAfterRevert

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Test
public void testModificationAndAfterRevert() throws Exception {
  final SubTree subTree = new SubTree(myWorkingCopyDir);
  checkin();
  sleep(100);

  VcsTestUtil.editFileInCommand(myProject, subTree.myS1File, "new content");

  final CharSequence text1 = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals("new content", text1.toString());

  sleep(100);
  LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(subTree.myS1File.getPath()));
  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  final VcsException updateException = ((ChangeListManagerImpl)clManager).getUpdateException();
  if (updateException != null) {
    updateException.printStackTrace();
  }
  if (! RepeatSvnActionThroughBusy.ourBusyExceptionProcessor.process(updateException)) {
    Assert.assertNull(updateException == null ? null : updateException.getMessage(), updateException);
  }

  DuringChangeListManagerUpdateTestScheme.checkFilesAreInList(new VirtualFile[] {subTree.myS1File}, clManager.getDefaultListName(), clManager);

  final Collection<Change> changes = clManager.getDefaultChangeList().getChanges();

  final RollbackWorker worker = new RollbackWorker(myProject);
  worker.doRollback(changes, false, null, null);

  final CharSequence text = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals(SubTree.ourS1Contents, text.toString());

  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  DuringChangeListManagerUpdateTestScheme.checkFilesAreInList(new VirtualFile[] {}, clManager.getDefaultListName(), clManager);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:38,代码来源:SvnChangesCorrectlyRefreshedTest.java


示例15: setUp

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
  super.setUp();

  clManager = (ChangeListManagerImpl) ChangeListManager.getInstance(myProject);

  enableSilentOperation(VcsConfiguration.StandardConfirmation.ADD);
  enableSilentOperation(VcsConfiguration.StandardConfirmation.REMOVE);
  myVcs = SvnVcs.getInstance(myProject);
  myMainUrl = myRepoUrl + "/root/source";
  myExternalURL = myRepoUrl + "/root/target";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:SvnExternalTest.java


示例16: insideInitializedChangeListManager

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
private void insideInitializedChangeListManager(final ChangeListManager changeListManager, final Runnable runnable) {
  try {
    runnable.run();
  } finally {
    ((ChangeListManagerImpl) changeListManager).stopEveryThingIfInTestMode();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:SvnRenameTest.java


示例17: testModificationAndAfterRevert

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Test
public void testModificationAndAfterRevert() throws Exception {
  final SvnTestCase.SubTree subTree = new SubTree(myWorkingCopyDir);
  checkin();
  sleep(100);

  VcsTestUtil.editFileInCommand(myProject, subTree.myS1File, "new content");

  final CharSequence text1 = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals("new content", text1.toString());

  sleep(100);
  LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(subTree.myS1File.getPath()));
  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  final VcsException updateException = ((ChangeListManagerImpl)clManager).getUpdateException();
  if (updateException != null) {
    updateException.printStackTrace();
  }
  Assert.assertNull(updateException == null ? null : updateException.getMessage(), updateException);

  DuringChangeListManagerUpdateTestScheme
    .checkFilesAreInList(new VirtualFile[]{subTree.myS1File}, clManager.getDefaultListName(), clManager);

  final Collection<Change> changes = clManager.getDefaultChangeList().getChanges();

  final RollbackWorker worker = new RollbackWorker(myProject);
  worker.doRollback(changes, false, null, null);

  final CharSequence text = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals(SubTree.ourS1Contents, text.toString());

  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  DuringChangeListManagerUpdateTestScheme.checkFilesAreInList(new VirtualFile[] {}, clManager.getDefaultListName(), clManager);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:SvnChangesCorrectlyRefreshedNativeTest.java


示例18: testModificationAndAfterRevert

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Test
public void testModificationAndAfterRevert() throws Exception {
  //ChangeListManagerImpl.DEBUG = true;
  final SubTree subTree = new SubTree(myWorkingCopyDir);
  checkin();
  sleep(100);

  VcsTestUtil.editFileInCommand(myProject, subTree.myS1File, "new content");

  final CharSequence text1 = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals("new content", text1.toString());

  sleep(100);
  LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(subTree.myS1File.getPath()));
  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  final VcsException updateException = ((ChangeListManagerImpl)clManager).getUpdateException();
  if (updateException != null) {
    updateException.printStackTrace();
  }
  Assert.assertNull(updateException == null ? null : updateException.getMessage(), updateException);

  DuringChangeListManagerUpdateTestScheme.checkFilesAreInList(new VirtualFile[] {subTree.myS1File}, clManager.getDefaultListName(), clManager);

  final Collection<Change> changes = clManager.getDefaultChangeList().getChanges();

  final RollbackWorker worker = new RollbackWorker(myProject);
  worker.doRollback(changes, false, null, null);

  final CharSequence text = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals(SubTree.ourS1Contents, text.toString());

  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  DuringChangeListManagerUpdateTestScheme.checkFilesAreInList(new VirtualFile[] {}, clManager.getDefaultListName(), clManager);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:SvnChangesCorrectlyRefreshedTest.java


示例19: testModificationAndAfterRevert

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
@Test
public void testModificationAndAfterRevert() throws Exception {
  final SubTree subTree = new SubTree(myWorkingCopyDir);
  checkin();
  sleep(100);

  VcsTestUtil.editFileInCommand(myProject, subTree.myS1File, "new content");

  final CharSequence text1 = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals("new content", text1.toString());

  sleep(100);
  LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(subTree.myS1File.getPath()));
  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  final VcsException updateException = ((ChangeListManagerImpl)clManager).getUpdateException();
  if (updateException != null) {
    updateException.printStackTrace();
  }
  Assert.assertNull(updateException == null ? null : updateException.getMessage(), updateException);

  DuringChangeListManagerUpdateTestScheme
    .checkFilesAreInList(new VirtualFile[]{subTree.myS1File}, clManager.getDefaultListName(), clManager);

  final Collection<Change> changes = clManager.getDefaultChangeList().getChanges();

  final RollbackWorker worker = new RollbackWorker(myProject);
  worker.doRollback(changes, false, null, null);

  final CharSequence text = LoadTextUtil.loadText(subTree.myS1File);
  Assert.assertEquals(SubTree.ourS1Contents, text.toString());

  VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty();
  clManager.ensureUpToDate(false);
  DuringChangeListManagerUpdateTestScheme.checkFilesAreInList(new VirtualFile[] {}, clManager.getDefaultListName(), clManager);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:SvnChangesCorrectlyRefreshedNativeTest.java


示例20: editAndCommitFile

import com.intellij.openapi.vcs.changes.ChangeListManagerImpl; //导入依赖的package包/类
/**
 * Adds a new line of text to a file and adds/commits it
 *
 * @param file
 * @param repository
 * @param project
 * @throws IOException
 * @throws IOException
 */
public static void editAndCommitFile(final File file, final git4idea.repo.GitRepository repository, final Project project) throws IOException {
    // edits file
    final VirtualFile readmeVirtualFile = LocalFileSystem.getInstance().findFileByIoFile(file);
    FileUtil.writeToFile(file, "\nnew line", true);

    // adds and commits the change
    final LocalChangeListImpl localChangeList = LocalChangeListImpl.createEmptyChangeListImpl(project, "TestCommit", "12345");
    final ChangeListManagerImpl changeListManager = ChangeListManagerImpl.getInstanceImpl(project);
    VcsDirtyScopeManager.getInstance(project).markEverythingDirty();
    changeListManager.ensureUpToDate(false);
    changeListManager.addUnversionedFiles(localChangeList, ImmutableList.of(readmeVirtualFile));
    final Change change = changeListManager.getChange(LocalFileSystem.getInstance().findFileByIoFile(file));
    repository.getVcs().getCheckinEnvironment().commit(ImmutableList.of(change), COMMIT_MESSAGE);
}
 
开发者ID:Microsoft,项目名称:vso-intellij,代码行数:24,代码来源:L2GitUtil.java



注:本文中的com.intellij.openapi.vcs.changes.ChangeListManagerImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Connection类代码示例发布时间:2022-05-22
下一篇:
Java Language类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap