org.eclipse.jgit.lib.Repository.fireEvent()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.eclipse.jgit.lib.Repository.fireEvent方法的一些代码示例,展示了Repository.fireEvent的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.fireEvent方法的具体详情如下:
包路径:org.eclipse.jgit.lib.Repository
类名称:Repository
方法名:fireEvent

Repository.fireEvent介绍

[英]Fire an event to all registered listeners.

The source repository of the event is automatically set to this repository, before the event is delivered to any listeners.
[中]向所有注册的侦听器触发事件。
在将事件传递给任何侦听器之前,事件的源存储库将自动设置为此存储库。

代码示例

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

getUpdated().keySet(), getRemoved());
if (!event.isEmpty()) {
  repo.fireEvent(event);

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

} finally {
  if (!dryRun && !files.isEmpty()) {
    repo.fireEvent(new WorkingTreeModifiedEvent(null, files));

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

repo.fireEvent(new WorkingTreeModifiedEvent(null,
    actuallyDeletedFiles));

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

repo.fireEvent(new WorkingTreeModifiedEvent(
    actuallyModifiedPaths, null));

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

actuallyModifiedPaths = null;
if (!event.isEmpty()) {
  repo.fireEvent(event);

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

} finally {
  if (!deletedFiles.isEmpty()) {
    repo.fireEvent(
        new WorkingTreeModifiedEvent(null, deletedFiles));

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

unmergedPaths = resolveMerger.getUnmergedPaths();
if (!resolveMerger.getModifiedFiles().isEmpty()) {
  repo.fireEvent(new WorkingTreeModifiedEvent(
      resolveMerger.getModifiedFiles(), null));

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

List<String> modifiedByMerge = merger.getModifiedFiles();
if (!modifiedByMerge.isEmpty()) {
  repo.fireEvent(
      new WorkingTreeModifiedEvent(modifiedByMerge, null));

代码示例来源:origin: org.eclipse.egit/ui

RepositoryMapping mapping = RepositoryMapping.getMapping(path);
if (mapping != null)
  mapping.getRepository().fireEvent(new IndexChangedEvent());
if (out != null)
  try {

代码示例来源:origin: berlam/github-bucket

getUpdated().keySet(), getRemoved());
if (!event.isEmpty()) {
  repo.fireEvent(event);

代码示例来源:origin: berlam/github-bucket

} finally {
  if (!dryRun && !files.isEmpty()) {
    repo.fireEvent(new WorkingTreeModifiedEvent(null, files));

代码示例来源:origin: berlam/github-bucket

repo.fireEvent(new WorkingTreeModifiedEvent(null,
    actuallyDeletedFiles));

代码示例来源:origin: berlam/github-bucket

repo.fireEvent(new WorkingTreeModifiedEvent(
    actuallyModifiedPaths, null));

代码示例来源:origin: berlam/github-bucket

actuallyModifiedPaths = null;
if (!event.isEmpty()) {
  repo.fireEvent(event);

代码示例来源:origin: berlam/github-bucket

} finally {
  if (!deletedFiles.isEmpty()) {
    repo.fireEvent(
        new WorkingTreeModifiedEvent(null, deletedFiles));

代码示例来源:origin: berlam/github-bucket

unmergedPaths = resolveMerger.getUnmergedPaths();
if (!resolveMerger.getModifiedFiles().isEmpty()) {
  repo.fireEvent(new WorkingTreeModifiedEvent(
      resolveMerger.getModifiedFiles(), null));

代码示例来源:origin: berlam/github-bucket

List<String> modifiedByMerge = merger.getModifiedFiles();
if (!modifiedByMerge.isEmpty()) {
  repo.fireEvent(
      new WorkingTreeModifiedEvent(modifiedByMerge, null));

相关文章

Repository类方法