Search in sources :

Example 1 with CommandApiModule

use of org.eclipse.che.ide.command.CommandApiModule in project che by eclipse.

the class CoreGinModule method configure.

@Override
protected void configure() {
    install(new JsonRpcModule());
    install(new WebSocketModule());
    install(new ClientServerEventModule());
    install(new UiModule());
    install(new ClipboardModule());
    install(new EditorApiModule());
    install(new EditorPreferencesModule());
    install(new NotificationApiModule());
    install(new FileTypeApiModule());
    install(new ResourceApiModule());
    install(new ActionApiModule());
    install(new PartApiModule());
    install(new DebugApiModule());
    install(new ThemeApiModule());
    install(new PreferencesApiModule());
    install(new PersistenceApiModule());
    install(new MacroApiModule());
    install(new UserApiModule());
    install(new WorkspaceApiModule());
    install(new CommandApiModule());
    install(new ProjectApiModule());
    install(new ProjectImportModule());
    install(new OAuthApiModule());
    install(new FactoryApiModule());
    // configure miscellaneous core components
    bind(StandardComponentInitializer.class).in(Singleton.class);
    GinMapBinder<String, Component> componentsBinder = GinMapBinder.newMapBinder(binder(), String.class, Component.class);
    componentsBinder.addBinding("Standard components").to(StandardComponent.class);
    bind(DynaProvider.class).to(DynaProviderImpl.class);
    GinMapBinder.newMapBinder(binder(), String.class, FqnProvider.class);
    bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
    //TODO: don't remove binding until not fix Codenvy and other packaging  
    bind(String.class).annotatedWith(RestContext.class).toProvider(RestContextProvider.class).in(Singleton.class);
    install(new GinFactoryModuleBuilder().build(LoaderFactory.class));
    install(new GinFactoryModuleBuilder().build(PopupLoaderFactory.class));
    bind(ExtensionRegistry.class).in(Singleton.class);
    bind(AppContext.class).to(AppContextImpl.class);
    install(new GinFactoryModuleBuilder().build(FindResultNodeFactory.class));
    // clients for the REST services
    bind(GitServiceClient.class).to(GitServiceClientImpl.class).in(Singleton.class);
    bind(SshServiceClient.class).to(SshServiceClientImpl.class).in(Singleton.class);
    bind(RecipeServiceClient.class).to(RecipeServiceClientImpl.class).in(Singleton.class);
    // IDE agents
    bind(SelectionAgent.class).to(SelectionAgentImpl.class).asEagerSingleton();
    bind(KeyBindingAgent.class).to(KeyBindingManager.class).in(Singleton.class);
    bind(WorkspaceAgent.class).to(WorkspacePresenter.class).in(Singleton.class);
    // Exec agent
    bind(ExecAgentCommandManager.class).to(JsonRpcExecAgentCommandManager.class);
    bind(ExecAgentEventManager.class).to(JsonRpcExecAgentEventManager.class);
    bind(ConnectedEventHandler.class).asEagerSingleton();
}
Also used : ActionApiModule(org.eclipse.che.ide.actions.ActionApiModule) DebugApiModule(org.eclipse.che.ide.debug.DebugApiModule) PreferencesApiModule(org.eclipse.che.ide.preferences.PreferencesApiModule) ConnectedEventHandler(org.eclipse.che.ide.api.machine.execagent.ConnectedEventHandler) ResourceApiModule(org.eclipse.che.ide.resources.ResourceApiModule) FileTypeApiModule(org.eclipse.che.ide.filetypes.FileTypeApiModule) PopupLoaderFactory(org.eclipse.che.ide.ui.loaders.PopupLoaderFactory) EditorPreferencesModule(org.eclipse.che.ide.editor.preferences.EditorPreferencesModule) ThemeApiModule(org.eclipse.che.ide.theme.ThemeApiModule) PersistenceApiModule(org.eclipse.che.ide.statepersistance.PersistenceApiModule) ExtensionRegistry(org.eclipse.che.ide.api.extension.ExtensionRegistry) GitServiceClientImpl(org.eclipse.che.ide.api.git.GitServiceClientImpl) SelectionAgentImpl(org.eclipse.che.ide.selection.SelectionAgentImpl) RecipeServiceClientImpl(org.eclipse.che.ide.api.machine.RecipeServiceClientImpl) ExecAgentEventManager(org.eclipse.che.ide.api.machine.ExecAgentEventManager) JsonRpcExecAgentEventManager(org.eclipse.che.ide.api.machine.execagent.JsonRpcExecAgentEventManager) MacroApiModule(org.eclipse.che.ide.macro.MacroApiModule) SshServiceClientImpl(org.eclipse.che.ide.api.ssh.SshServiceClientImpl) ProjectImportModule(org.eclipse.che.ide.projectimport.ProjectImportModule) Component(org.eclipse.che.ide.api.component.Component) FactoryApiModule(org.eclipse.che.ide.factory.FactoryApiModule) WorkspacePresenter(org.eclipse.che.ide.workspace.WorkspacePresenter) WorkspaceApiModule(org.eclipse.che.ide.workspace.WorkspaceApiModule) AppContext(org.eclipse.che.ide.api.app.AppContext) GinFactoryModuleBuilder(com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder) ProjectApiModule(org.eclipse.che.ide.project.ProjectApiModule) CommandApiModule(org.eclipse.che.ide.command.CommandApiModule) ClipboardModule(org.eclipse.che.ide.clipboard.ClipboardModule) OAuthApiModule(org.eclipse.che.ide.oauth.OAuthApiModule) PartApiModule(org.eclipse.che.ide.part.PartApiModule) NotificationApiModule(org.eclipse.che.ide.notification.NotificationApiModule) JsonRpcExecAgentCommandManager(org.eclipse.che.ide.api.machine.execagent.JsonRpcExecAgentCommandManager) ExecAgentCommandManager(org.eclipse.che.ide.api.machine.ExecAgentCommandManager) SimpleEventBus(com.google.web.bindery.event.shared.SimpleEventBus) RestContextProvider(org.eclipse.che.ide.rest.RestContextProvider) PopupLoaderFactory(org.eclipse.che.ide.ui.loaders.PopupLoaderFactory) LoaderFactory(org.eclipse.che.ide.ui.loaders.request.LoaderFactory) FindResultNodeFactory(org.eclipse.che.ide.search.factory.FindResultNodeFactory) KeyBindingManager(org.eclipse.che.ide.keybinding.KeyBindingManager) EditorApiModule(org.eclipse.che.ide.editor.EditorApiModule) DynaProvider(org.eclipse.che.providers.DynaProvider) UserApiModule(org.eclipse.che.ide.user.UserApiModule)

Aggregations

GinFactoryModuleBuilder (com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder)1 SimpleEventBus (com.google.web.bindery.event.shared.SimpleEventBus)1 ActionApiModule (org.eclipse.che.ide.actions.ActionApiModule)1 AppContext (org.eclipse.che.ide.api.app.AppContext)1 Component (org.eclipse.che.ide.api.component.Component)1 ExtensionRegistry (org.eclipse.che.ide.api.extension.ExtensionRegistry)1 GitServiceClientImpl (org.eclipse.che.ide.api.git.GitServiceClientImpl)1 ExecAgentCommandManager (org.eclipse.che.ide.api.machine.ExecAgentCommandManager)1 ExecAgentEventManager (org.eclipse.che.ide.api.machine.ExecAgentEventManager)1 RecipeServiceClientImpl (org.eclipse.che.ide.api.machine.RecipeServiceClientImpl)1 ConnectedEventHandler (org.eclipse.che.ide.api.machine.execagent.ConnectedEventHandler)1 JsonRpcExecAgentCommandManager (org.eclipse.che.ide.api.machine.execagent.JsonRpcExecAgentCommandManager)1 JsonRpcExecAgentEventManager (org.eclipse.che.ide.api.machine.execagent.JsonRpcExecAgentEventManager)1 SshServiceClientImpl (org.eclipse.che.ide.api.ssh.SshServiceClientImpl)1 ClipboardModule (org.eclipse.che.ide.clipboard.ClipboardModule)1 CommandApiModule (org.eclipse.che.ide.command.CommandApiModule)1 DebugApiModule (org.eclipse.che.ide.debug.DebugApiModule)1 EditorApiModule (org.eclipse.che.ide.editor.EditorApiModule)1 EditorPreferencesModule (org.eclipse.che.ide.editor.preferences.EditorPreferencesModule)1 FactoryApiModule (org.eclipse.che.ide.factory.FactoryApiModule)1