本文整理汇总了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));
}
示例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();
}
示例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);
}
}
}
示例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();
}
});
}
示例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);
}
});
}
示例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);
}
});
}
示例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));
}
示例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);
}
}
});
}
示例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);
}
}
示例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);
}
}