Package com.intellij.openapi.util
Class ActionCallback
java.lang.Object
com.intellij.openapi.util.ActionCallback
- Direct Known Subclasses:
ActionCallback.Done,ActionCallback.Rejected
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActionCallbackprotected Stringstatic final ActionCallback -
Constructor Summary
ConstructorsConstructorDescriptionActionCallback(int countToDone) ActionCallback(String name) ActionCallback(String name, int countToDone) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.final ActionCallbackdoWhenDone(Runnable runnable) final ActionCallbackdoWhenProcessed(Runnable runnable) final ActionCallbackdoWhenRejected(Consumer<String> consumer) final ActionCallbackdoWhenRejected(Runnable runnable) getError()booleanisDone()booleanbooleannotify(ActionCallback child) final ActionCallbacknotifyWhenDone(ActionCallback child) final ActionCallbacknotifyWhenRejected(ActionCallback child) final ActionCallbackprocessOnDone(Runnable runnable, boolean requiresDone) voidsetDone()voidtoString()booleanwaitFor(long msTimeout)
-
Field Details
-
DONE
-
REJECTED
-
myError
-
-
Constructor Details
-
ActionCallback
public ActionCallback() -
ActionCallback
-
ActionCallback
public ActionCallback(int countToDone) -
ActionCallback
-
-
Method Details
-
setDone
public void setDone() -
isDone
public boolean isDone() -
isRejected
public boolean isRejected() -
isProcessed
public boolean isProcessed() -
setRejected
public void setRejected() -
reject
-
getError
-
doWhenDone
-
doWhenRejected
-
doWhenRejected
-
doWhenProcessed
-
notifyWhenDone
-
notifyWhenRejected
-
notify
-
processOnDone
@NotNull public final ActionCallback processOnDone(@NotNull Runnable runnable, boolean requiresDone) -
toString
-
createSetDoneRunnable
-
createSetRejectedRunnable
Deprecated. -
waitFor
public boolean waitFor(long msTimeout)
-
notifyWhenRejected(ActionCallback)