本文整理汇总了Java中com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener类的典型用法代码示例。如果您正苦于以下问题:Java HttpVirtualFileListener类的具体用法?Java HttpVirtualFileListener怎么用?Java HttpVirtualFileListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HttpVirtualFileListener类属于com.intellij.openapi.vfs.ex.http包,在下文中一共展示了HttpVirtualFileListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: XBreakpointManagerImpl
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
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);
}
}
}
示例2: XBreakpointManagerImpl
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
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);
}
}
}
示例3: XBreakpointManagerImpl
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
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);
}
}
}
示例4: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@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);
}
});
}
示例5: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@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);
}
});
}
示例6: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener) {
getRemoteFileManager().addFileListener(listener);
}
示例7: removeFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@NotNull HttpVirtualFileListener listener) {
getRemoteFileManager().removeFileListener(listener);
}
示例8: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void addFileListener(@NotNull final HttpVirtualFileListener listener) {
myDispatcher.addListener(listener);
}
示例9: removeFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@NotNull final HttpVirtualFileListener listener) {
myDispatcher.removeListener(listener);
}
示例10: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void addFileListener(@Nonnull HttpVirtualFileListener listener) {
getRemoteFileManager().addFileListener(listener);
}
示例11: removeFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@Nonnull HttpVirtualFileListener listener) {
getRemoteFileManager().removeFileListener(listener);
}
示例12: removeFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@Nonnull final HttpVirtualFileListener listener) {
myDispatcher.removeListener(listener);
}
示例13: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener);
示例14: removeFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
public abstract void removeFileListener(@NotNull HttpVirtualFileListener listener);
示例15: addFileListener
import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
public abstract void addFileListener(@Nonnull HttpVirtualFileListener listener);