当前位置: 首页>>代码示例>>Java>>正文


Java BulkVirtualFileListenerAdapter类代码示例

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


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

示例1: startEventPropagation

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
protected void startEventPropagation() {
  Application application = ApplicationManager.getApplication();
  if (application == null) {
    return;
  }

  application.getMessageBus().connect().subscribe(
    VirtualFileManager.VFS_CHANGES, new BulkVirtualFileListenerAdapter(myEventDispatcher.getMulticaster(), this));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:DeprecatedVirtualFileSystem.java

示例2: after

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
@Override
public void after(@NotNull List<? extends VFileEvent> events) {
  myContentlessIndicesUpdateQueue.ensureUpToDate();

  for (VFileEvent event : events) {
    BulkVirtualFileListenerAdapter.fireAfter(this, event);
  }
  myContentlessIndicesUpdateQueue.signalUpdateEnd();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FileBasedIndexImpl.java

示例3: after

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
@Override
public void after(@NotNull List<? extends VFileEvent> events) {
  if (myBatchChangePlanned) {
    myBatchChangePlanned = false;
    long started = System.currentTimeMillis();
    doInitialize();
    LOG.info("Rebuilt indexstate for " + (System.currentTimeMillis() - started));
  }
  else {
    for (VFileEvent event : events) {
      BulkVirtualFileListenerAdapter.fireAfter(this, event);
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:15,代码来源:DirectoryIndexImpl.java

示例4: PsiVFSListener

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
public PsiVFSListener(StartupManager startupManager,
                      FileTypeManager fileTypeManager,
                      PsiManager psiManager, 
                      ProjectRootManager projectRootManager) {
  myFileTypeManager = fileTypeManager;
  myProjectRootManager = projectRootManager;
  myProjectFileIndex = myProjectRootManager.getFileIndex();
  myManager = (PsiManagerImpl) psiManager;
  myFileManager = (FileManagerImpl) myManager.getFileManager();

  myConnection = psiManager.getProject().getMessageBus().connect(psiManager.getProject());

  startupManager.registerPreStartupActivity(new Runnable() {
    @Override
    public void run() {
      myConnection.subscribe(VirtualFileManager.VFS_CHANGES, new BulkVirtualFileListenerAdapter(PsiVFSListener.this));
      myConnection.subscribe(ProjectTopics.PROJECT_ROOTS, new MyModuleRootListener());
      myConnection.subscribe(FileTypeManager.TOPIC, new FileTypeListener.Adapter() {
        @Override
        public void fileTypesChanged(FileTypeEvent e) {
          myFileManager.processFileTypesChanged();
        }
      });
      myConnection.subscribe(AppTopics.FILE_DOCUMENT_SYNC, new MyFileDocumentManagerAdapter());
      myFileManager.markInitialized();
    }
  });
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:29,代码来源:PsiVFSListener.java

示例5: before

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
@Override
public void before(@Nonnull List<? extends VFileEvent> events) {
  myGateway.runWithVfsEventsDispatchContext(events, true, () -> {
    for (VFileEvent event : events) {
      BulkVirtualFileListenerAdapter.fireBefore(myVfsEventsDispatcher.getMulticaster(), event);
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:LocalHistoryEventDispatcher.java

示例6: after

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
@Override
public void after(@Nonnull List<? extends VFileEvent> events) {
  myGateway.runWithVfsEventsDispatchContext(events, false, () -> {
    for (VFileEvent event : events) {
      BulkVirtualFileListenerAdapter.fireAfter(myVfsEventsDispatcher.getMulticaster(), event);
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:LocalHistoryEventDispatcher.java

示例7: startEventPropagation

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
protected void startEventPropagation() {
  Application application = ApplicationManager.getApplication();
  if (application == null) {
    return;
  }

  application.getMessageBus().connect().subscribe(
          VirtualFileManager.VFS_CHANGES, new BulkVirtualFileListenerAdapter(myEventDispatcher.getMulticaster(), this));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:DeprecatedVirtualFileSystem.java

示例8: ContentEntryFileListener

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
public ContentEntryFileListener(Application application, ProjectManager projectManager) {
  application.getMessageBus().connect().subscribe(VirtualFileManager.VFS_CHANGES, new BulkFileListener() {
    @Override
    public void before(@Nonnull List<? extends VFileEvent> events) {
      for (Project project : projectManager.getOpenProjects()) {
        new BulkVirtualFileListenerAdapter(new Listener(project), LocalFileSystem.getInstance()).before(events);
      }
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:ContentEntryFileListener.java

示例9: before

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
@Override
public void before(@Nonnull List<? extends VFileEvent> events) {
  for (VFileEvent event : events) {
    BulkVirtualFileListenerAdapter.fireBefore(this, event);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:PsiVFSListener.java

示例10: after

import com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter; //导入依赖的package包/类
@Override
public void after(@Nonnull List<? extends VFileEvent> events) {
  for (VFileEvent event : events) {
    BulkVirtualFileListenerAdapter.fireAfter(this, event);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:PsiVFSListener.java


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