Interface InitializationTask
-
- All Known Implementing Classes:
EcoreClassPathDetection
,Log4jInitilizationTask
,OCLEcoreRegistration
,ProjectURIByClasspathRegistration
,ProjectURIByLocationRegistration
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface InitializationTask
Task to be executed during standalone initialization. The task can have logic that is executed in standalone mode and when executed in an Eclipse environment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
init()
Performs the initialization.default void
initializationWithPlatform()
Performs an initialization if running inside of Eclipse.void
initilizationWithoutPlatform()
Performs an initialization if running outside of Eclipse.default boolean
isPlatformRunning()
Indicates if the Eclipse platform is available.
-
-
-
Method Detail
-
isPlatformRunning
default boolean isPlatformRunning()
Indicates if the Eclipse platform is available.- Returns:
- True if running in Eclipse.
-
init
default void init() throws StandaloneInitializationException
Performs the initialization. Depending on the availability of the Eclipse platform, specific initialization code is executed.- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
initilizationWithoutPlatform
void initilizationWithoutPlatform() throws StandaloneInitializationException
Performs an initialization if running outside of Eclipse.- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
initializationWithPlatform
default void initializationWithPlatform() throws StandaloneInitializationException
Performs an initialization if running inside of Eclipse.- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
-