本文整理汇总了Java中com.intellij.concurrency.AsyncUtil类的典型用法代码示例。如果您正苦于以下问题:Java AsyncUtil类的具体用法?Java AsyncUtil怎么用?Java AsyncUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AsyncUtil类属于com.intellij.concurrency包,在下文中一共展示了AsyncUtil类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processElementsWithWordAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> processElementsWithWordAsync(@NotNull final TextOccurenceProcessor processor,
@NotNull SearchScope searchScope,
@NotNull final String text,
final short searchContext,
final boolean caseSensitively) {
boolean result = processElementsWithWord(processor, searchScope, text, searchContext, caseSensitively,
shouldProcessInjectedPsi(searchScope));
return AsyncUtil.wrapBoolean(result);
}
示例2: processElementsWithWordAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@Nonnull
@Override
public AsyncFuture<Boolean> processElementsWithWordAsync(@Nonnull final TextOccurenceProcessor processor,
@Nonnull SearchScope searchScope,
@Nonnull final String text,
final short searchContext,
final boolean caseSensitively) {
boolean result = processElementsWithWord(processor, searchScope, text, searchContext, caseSensitively,
shouldProcessInjectedPsi(searchScope));
return AsyncUtil.wrapBoolean(result);
}
示例3: forEachAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull Processor<R> consumer) {
return AsyncUtil.wrapBoolean(true);
}
示例4: forEachAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull final Processor<T> consumer) {
return AsyncUtil.wrapBoolean(forEach(consumer));
}
示例5: forEachAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull Processor<Result> consumer) {
return AsyncUtil.wrapBoolean(forEach(consumer));
}
示例6: processResultsAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
protected AsyncFuture<Boolean> processResultsAsync(@NotNull Processor<Result> consumer) {
return AsyncUtil.wrapBoolean(processResults(consumer));
}
示例7: forEachAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull Processor<T> consumer) {
return AsyncUtil.wrapBoolean(forEach(consumer));
}
示例8: processRequestsAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> processRequestsAsync(@NotNull SearchRequestCollector collector, @NotNull Processor<PsiReference> processor) {
return AsyncUtil.wrapBoolean(processRequests(collector, processor));
}
示例9: blockUntilDeployComplete
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
/** Blocks until the plugin files have been copied to the sandbox */
void blockUntilDeployComplete() {
AsyncUtil.get(fileCopyingTask);
fileCopyingTask = null;
}
示例10: processRequestsAsync
import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@Nonnull
@Override
public AsyncFuture<Boolean> processRequestsAsync(@Nonnull SearchRequestCollector collector, @Nonnull Processor<PsiReference> processor) {
return AsyncUtil.wrapBoolean(processRequests(collector, processor));
}