本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例10: CompositeTestLocationProvider
import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
@SuppressWarnings("deprecation")
public CompositeTestLocationProvider(@Nullable TestLocationProvider primaryLocator) {
myPrimaryLocator = primaryLocator;
myLocators = Extensions.getExtensions(TestLocationProvider.EP_NAME);
}
示例11: CompositeTestLocationProvider
import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public CompositeTestLocationProvider(@Nullable TestLocationProvider primaryLocator) {
myPrimaryLocator = primaryLocator;
}
示例12: setLocator
import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public void setLocator(@NotNull TestLocationProvider locator) {
myLocator = locator;
}
示例13: setLocator
import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public void setLocator(@NotNull TestLocationProvider customLocator) {
myLocator = customLocator;
}
示例14: setLocator
import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
@Override
public void setLocator(@NotNull TestLocationProvider locator) {
}
示例15: CompositeTestLocationProvider
import com.intellij.testIntegration.TestLocationProvider; //导入依赖的package包/类
public CompositeTestLocationProvider(@Nullable TestLocationProvider primaryLocator) {
myPrimaryLocator = primaryLocator;
myLocators = Extensions.getExtensions(TestLocationProvider.EP_NAME);
}