public final class RunOnceUtil
extends java.lang.Object
| Constructor and Description |
|---|
RunOnceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
runOnceForApp(java.lang.String id,
java.lang.Runnable task)
Perform the task if it was not performed before for this application.
|
static boolean |
runOnceForProject(Project project,
java.lang.String id,
java.lang.Runnable task)
Perform the task if it was not performed before for the given project.
|
public static boolean runOnceForProject(Project project, java.lang.String id, java.lang.Runnable task)
id - unique id for the tasktrue if task was performed, false if task had already been performed before.public static boolean runOnceForApp(java.lang.String id,
java.lang.Runnable task)
id - unique id for the tasktrue if task was performed, false if task had already been performed before.