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


Java HttpVirtualFileListener类代码示例

本文整理汇总了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);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:XBreakpointManagerImpl.java

示例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);
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:XBreakpointManagerImpl.java

示例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);
    }
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:17,代码来源:XBreakpointManagerImpl.java

示例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);
    }
  });
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:11,代码来源:RemoteFileManagerImpl.java

示例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);
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:RemoteFileManagerImpl.java

示例6: addFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void addFileListener(@NotNull HttpVirtualFileListener listener) {
  getRemoteFileManager().addFileListener(listener);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:HttpFileSystemBase.java

示例7: removeFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@NotNull HttpVirtualFileListener listener) {
  getRemoteFileManager().removeFileListener(listener);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:HttpFileSystemBase.java

示例8: addFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void addFileListener(@NotNull final HttpVirtualFileListener listener) {
  myDispatcher.addListener(listener);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RemoteFileManagerImpl.java

示例9: removeFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@NotNull final HttpVirtualFileListener listener) {
  myDispatcher.removeListener(listener);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RemoteFileManagerImpl.java

示例10: addFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void addFileListener(@Nonnull HttpVirtualFileListener listener) {
  getRemoteFileManager().addFileListener(listener);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:HttpFileSystemBase.java

示例11: removeFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@Nonnull HttpVirtualFileListener listener) {
  getRemoteFileManager().removeFileListener(listener);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:HttpFileSystemBase.java

示例12: removeFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
@Override
public void removeFileListener(@Nonnull final HttpVirtualFileListener listener) {
  myDispatcher.removeListener(listener);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:RemoteFileManagerImpl.java

示例13: addFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
public abstract void addFileListener(@NotNull HttpVirtualFileListener listener); 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:2,代码来源:RemoteFileManager.java

示例14: removeFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
public abstract void removeFileListener(@NotNull HttpVirtualFileListener listener); 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:2,代码来源:RemoteFileManager.java

示例15: addFileListener

import com.intellij.openapi.vfs.ex.http.HttpVirtualFileListener; //导入依赖的package包/类
public abstract void addFileListener(@Nonnull HttpVirtualFileListener listener); 
开发者ID:consulo,项目名称:consulo,代码行数:2,代码来源:RemoteFileManager.java


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