本文整理汇总了Java中com.intellij.openapi.editor.LazyRangeMarkerFactory类的典型用法代码示例。如果您正苦于以下问题:Java LazyRangeMarkerFactory类的具体用法?Java LazyRangeMarkerFactory怎么用?Java LazyRangeMarkerFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LazyRangeMarkerFactory类属于com.intellij.openapi.editor包,在下文中一共展示了LazyRangeMarkerFactory类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createMocksForAddDependency
import com.intellij.openapi.editor.LazyRangeMarkerFactory; //导入依赖的package包/类
private void createMocksForAddDependency(
Container applicationServices, Container projectServices) {
projectServices.register(
BlazeProjectDataManager.class,
new MockBlazeProjectDataManager(createMockBlazeProjectData()));
projectServices.register(FileEditorManager.class, mock(FileEditorManager.class));
projectServices.register(BuildReferenceManager.class, mock(BuildReferenceManager.class));
projectServices.register(LazyRangeMarkerFactory.class, mock(LazyRangeMarkerFactoryImpl.class));
applicationServices.register(
VirtualFileSystemProvider.class, new MockVirtualFileSystemProvider("/foo/BUILD"));
AndroidResourceModuleRegistry moduleRegistry = new AndroidResourceModuleRegistry();
moduleRegistry.put(
module,
AndroidResourceModule.builder(TargetKey.forPlainTarget(Label.create("//foo:bar"))).build());
projectServices.register(AndroidResourceModuleRegistry.class, moduleRegistry);
}