Java 类com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener 实例源码

项目:intellij-ce-playground    文件:XBreakpointManagerImpl.java   
public XBreakpointManagerImpl(final Project project, final XDebuggerManagerImpl debuggerManager, StartupManager startupManager) {
  myProject = project;
  myDebuggerManager = debuggerManager;
  myAllBreakpointsDispatcher = EventDispatcher.create(XBreakpointListener.class);
  myDependentBreakpointManager = new XDependentBreakpointManager(this);
  myLineBreakpointManager = new XLineBreakpointManager(project, myDependentBreakpointManager, startupManager);
  if (!project.isDefault()) {
    if (!ApplicationManager.getApplication().isUnitTestMode()) {
      HttpVirtualFileListener httpVirtualFileListener = new HttpVirtualFileListener() {
        @Override
        public void fileDownloaded(@NotNull final VirtualFile file) {
          updateBreakpointInFile(file);
        }
      };
      HttpFileSystem.getInstance().addFileListener(httpVirtualFileListener, project);
    }
    for (XBreakpointType<?, ?> type : XBreakpointUtil.getBreakpointTypes()) {
      addDefaultBreakpoint(type);
    }
  }
}
项目:tools-idea    文件:XBreakpointManagerImpl.java   
public XBreakpointManagerImpl(final Project project, final XDebuggerManagerImpl debuggerManager, StartupManager startupManager) {
  myProject = project;
  myDebuggerManager = debuggerManager;
  myAllBreakpointsDispatcher = EventDispatcher.create(XBreakpointListener.class);
  myDependentBreakpointManager = new XDependentBreakpointManager(this);
  myLineBreakpointManager = new XLineBreakpointManager(project, myDependentBreakpointManager, startupManager);
  if (!project.isDefault() && !ApplicationManager.getApplication().isUnitTestMode()) {
    HttpVirtualFileListener httpVirtualFileListener = new HttpVirtualFileListener() {
      @Override
      public void fileDownloaded(@NotNull final VirtualFile file) {
        updateBreakpointInFile(file);
      }
    };
    HttpFileSystem.getInstance().addFileListener(httpVirtualFileListener, project);
    for (XBreakpointType<?, ?> type : XBreakpointUtil.getBreakpointTypes()) {
      addDefaultBreakpoint(type);
    }
  }
}
项目:consulo    文件:XBreakpointManagerImpl.java   
public XBreakpointManagerImpl(final Project project, final XDebuggerManagerImpl debuggerManager, StartupManager startupManager) {
  myProject = project;
  myDebuggerManager = debuggerManager;
  myAllBreakpointsDispatcher = EventDispatcher.create(XBreakpointListener.class);
  myDependentBreakpointManager = new XDependentBreakpointManager(this);
  myLineBreakpointManager = new XLineBreakpointManager(project, myDependentBreakpointManager, startupManager);
  if (!project.isDefault()) {
    if (!ApplicationManager.getApplication().isUnitTestMode()) {
      HttpVirtualFileListener httpVirtualFileListener = this::updateBreakpointInFile;
      HttpFileSystem.getInstance().addFileListener(httpVirtualFileListener, project);
    }
    for (XBreakpointType<?, ?> type : XBreakpointUtil.getBreakpointTypes()) {
      addDefaultBreakpoint(type);
    }
  }
}
项目:tools-idea    文件:RemoteFileManagerImpl.java   
@Override
public void addFileListener(@NotNull final HttpVirtualFileListener listener, @NotNull final Disposable parentDisposable) {
  addFileListener(listener);
  Disposer.register(parentDisposable, new Disposable() {
    @Override
    public void dispose() {
      removeFileListener(listener);
    }
  });
}
项目:consulo    文件:RemoteFileManagerImpl.java   
@Override
public void addFileListener(@Nonnull final HttpVirtualFileListener listener, @Nonnull final Disposable parentDisposable) {
  addFileListener(listener);
  Disposer.register(parentDisposable, new Disposable() {
    @Override
    public void dispose() {
      removeFileListener(listener);
    }
  });
}
项目:intellij-ce-playground    文件:HttpFileSystemBase.java   
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener) {
  getRemoteFileManager().addFileListener(listener);
}
项目:intellij-ce-playground    文件:HttpFileSystemBase.java   
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable) {
  getRemoteFileManager().addFileListener(listener, parentDisposable);
}
项目:intellij-ce-playground    文件:HttpFileSystemBase.java   
@Override
public void removeFileListener(@NotNull HttpVirtualFileListener listener) {
  getRemoteFileManager().removeFileListener(listener);
}
项目:intellij-ce-playground    文件:RemoteFileManagerImpl.java   
@Override
public void addFileListener(@NotNull final HttpVirtualFileListener listener) {
  myDispatcher.addListener(listener);
}
项目:intellij-ce-playground    文件:RemoteFileManagerImpl.java   
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable) {
  myDispatcher.addListener(listener, parentDisposable);
}
项目:intellij-ce-playground    文件:RemoteFileManagerImpl.java   
@Override
public void removeFileListener(@NotNull final HttpVirtualFileListener listener) {
  myDispatcher.removeListener(listener);
}
项目:tools-idea    文件:HttpFileSystemBase.java   
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener) {
  getRemoteFileManager().addFileListener(listener);
}
项目:tools-idea    文件:HttpFileSystemBase.java   
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable) {
  getRemoteFileManager().addFileListener(listener, parentDisposable);
}
项目:tools-idea    文件:HttpFileSystemBase.java   
@Override
public void removeFileListener(@NotNull HttpVirtualFileListener listener) {
  getRemoteFileManager().removeFileListener(listener);
}
项目:tools-idea    文件:RemoteFileManagerImpl.java   
@Override
public void addFileListener(@NotNull final HttpVirtualFileListener listener) {
  myDispatcher.addListener(listener);
}
项目:tools-idea    文件:RemoteFileManagerImpl.java   
@Override
public void removeFileListener(@NotNull final HttpVirtualFileListener listener) {
  myDispatcher.removeListener(listener);
}
项目:consulo    文件:HttpFileSystemBase.java   
@Override
public void addFileListener(@Nonnull HttpVirtualFileListener listener) {
  getRemoteFileManager().addFileListener(listener);
}
项目:consulo    文件:HttpFileSystemBase.java   
@Override
public void addFileListener(@Nonnull HttpVirtualFileListener listener, @Nonnull Disposable parentDisposable) {
  getRemoteFileManager().addFileListener(listener, parentDisposable);
}
项目:consulo    文件:HttpFileSystemBase.java   
@Override
public void removeFileListener(@Nonnull HttpVirtualFileListener listener) {
  getRemoteFileManager().removeFileListener(listener);
}
项目:consulo    文件:RemoteFileManagerImpl.java   
@Override
public void addFileListener(@Nonnull final HttpVirtualFileListener listener) {
  myDispatcher.addListener(listener);
}
项目:consulo    文件:RemoteFileManagerImpl.java   
@Override
public void removeFileListener(@Nonnull final HttpVirtualFileListener listener) {
  myDispatcher.removeListener(listener);
}
项目:intellij-ce-playground    文件:RemoteFileManager.java   
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener);
项目:intellij-ce-playground    文件:RemoteFileManager.java   
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable);
项目:intellij-ce-playground    文件:RemoteFileManager.java   
public abstract void removeFileListener(@NotNull HttpVirtualFileListener listener);
项目:tools-idea    文件:RemoteFileManager.java   
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener);
项目:tools-idea    文件:RemoteFileManager.java   
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable);
项目:tools-idea    文件:RemoteFileManager.java   
public abstract void removeFileListener(@NotNull HttpVirtualFileListener listener);
项目:consulo    文件:RemoteFileManager.java   
public abstract void addFileListener(@Nonnull HttpVirtualFileListener listener);
项目:consulo    文件:RemoteFileManager.java   
public abstract void addFileListener(@Nonnull HttpVirtualFileListener listener, @Nonnull Disposable parentDisposable);
项目:consulo    文件:RemoteFileManager.java   
public abstract void removeFileListener(@Nonnull HttpVirtualFileListener listener);