Package com.diffplug.gradle.oomph
Class EclipseMisc
- java.lang.Object
-
- com.diffplug.gradle.oomph.EclipseMisc
-
public class EclipseMisc extends Object
Utilities for working with eclipse internals (which should only be called from within an Eclipse instance).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEclipseMisc.ThrowingConsumer<T>Consumer which can throw an exception.
-
Field Summary
Fields Modifier and Type Field Description static StringID_PROJECT_IMPORT
-
Constructor Summary
Constructors Constructor Description EclipseMisc()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogException(Throwable t)Logs an exception to the console and the eclipse error log.static voidwaitForJobsToFinish()Waits for all the jobs to finish.static <T> voidwithService(Class<T> clazz, EclipseMisc.ThrowingConsumer<T> action)Performs some action using an Eclipse service.
-
-
-
Field Detail
-
ID_PROJECT_IMPORT
public static final String ID_PROJECT_IMPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
withService
public static <T> void withService(Class<T> clazz, EclipseMisc.ThrowingConsumer<T> action)
Performs some action using an Eclipse service.
-
logException
public static void logException(Throwable t)
Logs an exception to the console and the eclipse error log.
-
waitForJobsToFinish
public static void waitForJobsToFinish()
Waits for all the jobs to finish.
-
-