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); } } }
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); } } }
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); } } }
@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); } }); }
@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); } }); }
@Override public void addFileListener(@NotNull HttpVirtualFileListener listener) { getRemoteFileManager().addFileListener(listener); }
@Override public void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable) { getRemoteFileManager().addFileListener(listener, parentDisposable); }
@Override public void removeFileListener(@NotNull HttpVirtualFileListener listener) { getRemoteFileManager().removeFileListener(listener); }
@Override public void addFileListener(@NotNull final HttpVirtualFileListener listener) { myDispatcher.addListener(listener); }
@Override public void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable) { myDispatcher.addListener(listener, parentDisposable); }
@Override public void removeFileListener(@NotNull final HttpVirtualFileListener listener) { myDispatcher.removeListener(listener); }
@Override public void addFileListener(@Nonnull HttpVirtualFileListener listener) { getRemoteFileManager().addFileListener(listener); }
@Override public void addFileListener(@Nonnull HttpVirtualFileListener listener, @Nonnull Disposable parentDisposable) { getRemoteFileManager().addFileListener(listener, parentDisposable); }
@Override public void removeFileListener(@Nonnull HttpVirtualFileListener listener) { getRemoteFileManager().removeFileListener(listener); }
@Override public void addFileListener(@Nonnull final HttpVirtualFileListener listener) { myDispatcher.addListener(listener); }
@Override public void removeFileListener(@Nonnull final HttpVirtualFileListener listener) { myDispatcher.removeListener(listener); }
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener);
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener, @NotNull Disposable parentDisposable);
public abstract void removeFileListener(@NotNull HttpVirtualFileListener listener);
public abstract void addFileListener(@Nonnull HttpVirtualFileListener listener);
public abstract void addFileListener(@Nonnull HttpVirtualFileListener listener, @Nonnull Disposable parentDisposable);
public abstract void removeFileListener(@Nonnull HttpVirtualFileListener listener);