public class QuickDocUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
CUT_AT_CMD |
| Constructor and Description |
|---|
QuickDocUtil() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentationComponent |
getActiveDocComponent(Project project) |
static java.lang.String |
inferLinkFromFullDocumentation(DocumentationProvider provider,
PsiElement element,
PsiElement originalElement,
java.lang.String navigationInfo) |
static boolean |
runInReadActionWithWriteActionPriorityWithRetries(java.lang.Runnable action,
long timeout,
long pauseBetweenRetries)
Deprecated.
|
static boolean |
runInReadActionWithWriteActionPriorityWithRetries(java.lang.Runnable action,
long timeout,
long pauseBetweenRetries,
ProgressIndicator progressIndicator)
Deprecated.
|
static void |
updateQuickDoc(Project project,
PsiElement element,
java.lang.String documentation) |
static void |
updateQuickDocAsync(PsiElement element,
java.lang.CharSequence prefix,
Consumer<Consumer<java.lang.Object>> provider) |
public static void updateQuickDoc(Project project, PsiElement element, java.lang.String documentation)
public static DocumentationComponent getActiveDocComponent(Project project)
@Deprecated
public static boolean runInReadActionWithWriteActionPriorityWithRetries(java.lang.Runnable action,
long timeout,
long pauseBetweenRetries,
ProgressIndicator progressIndicator)
ReadAction.nonBlocking(java.lang.Runnable)ProgressManager.checkCanceled() or ProgressIndicator.checkCanceled() often enough).action - task to runtimeout - timeout in millisecondspauseBetweenRetries - pause between retries in millisecondsprogressIndicator - optional progress indicator, which can be used to cancel the action externallytrue if the action succeeded to run without interruptions, false otherwise@Deprecated
public static boolean runInReadActionWithWriteActionPriorityWithRetries(java.lang.Runnable action,
long timeout,
long pauseBetweenRetries)
ReadAction.nonBlocking(java.lang.Runnable)runInReadActionWithWriteActionPriorityWithRetries(Runnable, long, long, ProgressIndicator) using current thread's
progress indicator (ProgressManager.getProgressIndicator()).public static java.lang.String inferLinkFromFullDocumentation(DocumentationProvider provider, PsiElement element, PsiElement originalElement, java.lang.String navigationInfo)
public static void updateQuickDocAsync(PsiElement element, java.lang.CharSequence prefix, Consumer<Consumer<java.lang.Object>> provider)