Interface InitializationTask
- All Known Implementing Classes:
EclipseProjectByClassRegistration,EclipseProjectScanner,EcoreClassPathDetection,EMFProfileInitializationTask,InitializationTaskWrapper,Log4jInitilizationTask,MetaModelRegistrationTask,OCLEcoreRegistration,ProjectURIByClasspathRegistration,ProjectURIByLocationRegistration,ProjectURIByURIRegistration
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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
Modifier and TypeMethodDescriptiondefault voidinit()Performs the initialization.default voidPerforms an initialization if running inside of Eclipse.voidPerforms an initialization if running outside of Eclipse.default booleanIndicates if the Eclipse platform is available.
-
Method Details
-
isPlatformRunning
default boolean isPlatformRunning()Indicates if the Eclipse platform is available.- Returns:
- True if running in Eclipse.
-
init
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
Performs an initialization if running outside of Eclipse.- Throws:
StandaloneInitializationException- In case of an error during the initialization.
-
initializationWithPlatform
Performs an initialization if running inside of Eclipse.- Throws:
StandaloneInitializationException- In case of an error during the initialization.
-