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


Java TestLocationProvider类代码示例

本文整理汇总了Java中com.intellij.testIntegration.TestLocationProvider的典型用法代码示例。如果您正苦于以下问题:Java TestLocationProvider类的具体用法?Java TestLocationProvider怎么用?Java TestLocationProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TestLocationProvider类属于com.intellij.testIntegration包,在下文中一共展示了TestLocationProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
/** @deprecated use {@link #setLocator(SMTestLocator)} (to be removed in IDEA 16) */
@SuppressWarnings("deprecation")
public void setLocator(@NotNull final TestLocationProvider locator) {
  class Adapter implements SMTestLocator, PossiblyDumbAware {
    @NotNull
    @Override
    public List<Location> getLocation(@NotNull String protocol, @NotNull String path, @NotNull Project project, @NotNull GlobalSearchScope scope) {
      return locator.getLocation(protocol, path, project);
    }

    @Override
    public boolean isDumbAware() {
      return DumbService.isDumbAware(locator);
    }
  }

  myLocator = new Adapter();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:SMTestProxy.java

示例2: initConsoleView

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public static void initConsoleView(@NotNull final SMTRunnerConsoleView consoleView,
                                   @NotNull final String testFrameworkName,
                                   @Nullable final TestLocationProvider locator,
                                   final boolean idBasedTreeConstruction,
                                   @Nullable final TestProxyFilterProvider filterProvider) {
  consoleView.addAttachToProcessListener(new AttachToProcessListener() {
    @Override
    public void onAttachToProcess(@NotNull ProcessHandler processHandler) {
      TestProxyPrinterProvider printerProvider = null;
      if (filterProvider != null) {
        printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
      }
      SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
      attachEventsProcessors(consoleView.getProperties(),
                             resultsForm,
                             resultsForm.getStatisticsPane(),
                             processHandler,
                             testFrameworkName,
                             locator,
                             idBasedTreeConstruction,
                             printerProvider);
    }
  });
  consoleView.setHelpId("reference.runToolWindow.testResultsTab");
  consoleView.initUI();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:27,代码来源:SMTestRunnerConnectionUtil.java

示例3: initConsoleView

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public static void initConsoleView(@Nonnull final SMTRunnerConsoleView consoleView,
                                   @Nonnull final String testFrameworkName,
                                   @javax.annotation.Nullable final TestLocationProvider locator,
                                   final ThriftTestHandlerFactory factory,
                                   @javax.annotation.Nullable final TestProxyFilterProvider filterProvider) {
  consoleView.addAttachToProcessListener(new AttachToProcessListener() {
    @Override
    public void onAttachToProcess(@Nonnull ProcessHandler processHandler) {
      TestProxyPrinterProvider printerProvider = null;
      if (filterProvider != null) {
        printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
      }
      SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
      attachEventsProcessors(consoleView.getProperties(), resultsForm, resultsForm.getStatisticsPane(), processHandler, testFrameworkName, locator, factory,
                             printerProvider);
    }
  });
  consoleView.setHelpId("reference.runToolWindow.testResultsTab");
  consoleView.initUI();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:ThriftTestExecutionUtil.java

示例4: initConsoleView

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
/**
 * @deprecated use {@link #initConsoleView(SMTRunnerConsoleView, String)} (to be removed in IDEA 16)
 */
@SuppressWarnings({"unused", "deprecation"})
public static void initConsoleView(@Nonnull final SMTRunnerConsoleView consoleView,
                                   @Nonnull final String testFrameworkName,
                                   @Nullable final TestLocationProvider locator,
                                   final boolean idBasedTreeConstruction,
                                   @javax.annotation.Nullable final TestProxyFilterProvider filterProvider) {
  consoleView.addAttachToProcessListener(new AttachToProcessListener() {
    @Override
    public void onAttachToProcess(@Nonnull ProcessHandler processHandler) {
      TestConsoleProperties properties = consoleView.getProperties();

      SMTestLocator testLocator = new CompositeTestLocationProvider(locator);

      TestProxyPrinterProvider printerProvider = null;
      if (filterProvider != null) {
        printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
      }

      SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
      attachEventsProcessors(properties, resultsForm, resultsForm.getStatisticsPane(), processHandler, testFrameworkName, testLocator, idBasedTreeConstruction, printerProvider);
    }
  });
  consoleView.setHelpId("reference.runToolWindow.testResultsTab");
  consoleView.initUI();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:29,代码来源:SMTestRunnerConnectionUtil.java

示例5: createConsoleWithCustomLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
/** @deprecated use {@link #createConsole(String, TestConsoleProperties)} (to be removed in IDEA 16) */
@SuppressWarnings({"unused", "deprecation"})
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@NotNull String testFrameworkName,
                                                                        @NotNull TestConsoleProperties consoleProperties,
                                                                        ExecutionEnvironment environment,
                                                                        @Nullable TestLocationProvider locator) {
  return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, locator, false, null);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:SMTestRunnerConnectionUtil.java

示例6: initConsoleView

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
/** @deprecated use {@link #initConsoleView(SMTRunnerConsoleView, String)} (to be removed in IDEA 16) */
@SuppressWarnings({"unused", "deprecation"})
public static void initConsoleView(@NotNull final SMTRunnerConsoleView consoleView,
                                   @NotNull final String testFrameworkName,
                                   @Nullable final TestLocationProvider locator,
                                   final boolean idBasedTreeConstruction,
                                   @Nullable final TestProxyFilterProvider filterProvider) {
  consoleView.addAttachToProcessListener(new AttachToProcessListener() {
    @Override
    public void onAttachToProcess(@NotNull ProcessHandler processHandler) {
      TestConsoleProperties properties = consoleView.getProperties();

      SMTestLocator testLocator = new CompositeTestLocationProvider(locator);

      TestProxyPrinterProvider printerProvider = null;
      if (filterProvider != null) {
        printerProvider = new TestProxyPrinterProvider(consoleView, filterProvider);
      }

      SMTestRunnerResultsForm resultsForm = consoleView.getResultsViewer();
      attachEventsProcessors(properties,
                             resultsForm,
                             resultsForm.getStatisticsPane(),
                             processHandler,
                             testFrameworkName,
                             testLocator,
                             idBasedTreeConstruction,
                             printerProvider);
    }
  });
  consoleView.setHelpId("reference.runToolWindow.testResultsTab");
  consoleView.initUI();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:34,代码来源:SMTestRunnerConnectionUtil.java

示例7: createConsoleWithCustomLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@NotNull final String testFrameworkName,
                                                                        @NotNull final TestConsoleProperties consoleProperties,
                                                                        ExecutionEnvironment environment,
                                                                        @Nullable final TestLocationProvider locator) {
  return createConsoleWithCustomLocator(testFrameworkName,
                                        consoleProperties,
                                        environment,
                                        new CompositeTestLocationProvider(locator),
                                        false,
                                        null);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:SMTestRunnerConnectionUtil.java

示例8: createConsoleWithCustomLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@Nonnull final String testFrameworkName,
                                                                        @Nonnull final TestConsoleProperties consoleProperties,
                                                                        @Nonnull ExecutionEnvironment environment,
                                                                        @Nonnull ThriftTestHandlerFactory factory,
                                                                        @javax.annotation.Nullable final TestLocationProvider locator) {
  return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, locator, factory, null);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:ThriftTestExecutionUtil.java

示例9: createConsoleWithCustomLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
/**
 * @deprecated use {@link #createConsole(String, TestConsoleProperties)} (to be removed in IDEA 16)
 */
@SuppressWarnings({"unused", "deprecation"})
public static BaseTestsOutputConsoleView createConsoleWithCustomLocator(@Nonnull String testFrameworkName,
                                                                        @Nonnull TestConsoleProperties consoleProperties,
                                                                        ExecutionEnvironment environment,
                                                                        @javax.annotation.Nullable TestLocationProvider locator) {
  return createConsoleWithCustomLocator(testFrameworkName, consoleProperties, environment, locator, false, null);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:SMTestRunnerConnectionUtil.java

示例10: CompositeTestLocationProvider

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
@SuppressWarnings("deprecation")
public CompositeTestLocationProvider(@Nullable TestLocationProvider primaryLocator) {
  myPrimaryLocator = primaryLocator;
  myLocators = Extensions.getExtensions(TestLocationProvider.EP_NAME);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:CompositeTestLocationProvider.java

示例11: CompositeTestLocationProvider

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public CompositeTestLocationProvider(@Nullable TestLocationProvider primaryLocator) {
  myPrimaryLocator = primaryLocator;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:CompositeTestLocationProvider.java

示例12: setLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public void setLocator(@NotNull TestLocationProvider locator) {
  myLocator = locator;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:SMTestProxy.java

示例13: setLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public void setLocator(@NotNull TestLocationProvider customLocator) {
  myLocator = customLocator;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:GeneralToSMTRunnerEventsConvertor.java

示例14: setLocator

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
@Override
public void setLocator(@NotNull TestLocationProvider locator) {
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:MockGeneralTestEventsProcessorAdapter.java

示例15: CompositeTestLocationProvider

import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public CompositeTestLocationProvider(@Nullable TestLocationProvider primaryLocator) {
  myPrimaryLocator = primaryLocator;
  myLocators = Extensions.getExtensions(TestLocationProvider.EP_NAME);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:SMTestRunnerConnectionUtil.java


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