public class EclipseMisc extends Object
Utilities for working with eclipse internals (which should only be called from within an Eclipse instance).
Modifier and Type | Class and Description |
---|---|
static interface |
EclipseMisc.ThrowingConsumer<T>
Consumer which can throw an exception.
|
Modifier and Type | Field and Description |
---|---|
static String |
ID_PROJECT_IMPORT |
Constructor and Description |
---|
EclipseMisc() |
Modifier and Type | Method and Description |
---|---|
static void |
logException(Throwable t)
Logs an exception to the console and the eclipse error log.
|
static void |
waitForJobsToFinish()
Waits for all the jobs to finish.
|
static <T> void |
withService(Class<T> clazz,
EclipseMisc.ThrowingConsumer<T> action)
Performs some action using an Eclipse service.
|
public static final String ID_PROJECT_IMPORT
public static <T> void withService(Class<T> clazz, EclipseMisc.ThrowingConsumer<T> action)
Performs some action using an Eclipse service.
public static void logException(Throwable t)
Logs an exception to the console and the eclipse error log.
public static void waitForJobsToFinish()
Waits for all the jobs to finish.