use of org.eclipse.che.ide.api.extension.ExtensionsInitializedEvent in project che by eclipse.
the class ExtensionInitializer method startExtensions.
public void startExtensions() {
Map<String, Provider> providers = extensionManager.getExtensions();
for (Entry<String, Provider> entry : providers.entrySet()) {
final String extensionFqn = entry.getKey();
final Provider extensionProvider = entry.getValue();
try {
// Order of startup is managed by GIN dependency injection framework
extensionProvider.get();
} catch (Throwable e) {
Log.error(ExtensionInitializer.class, "Can't initialize extension: " + extensionFqn, e);
}
}
eventBus.fireEvent(new ExtensionsInitializedEvent());
}
Aggregations