Search in sources :

Example 11 with GinFactoryModuleBuilder

use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.

the class UiModule method configure.

@Override
protected void configure() {
    bind(IconRegistry.class).to(IconRegistryImpl.class).in(Singleton.class);
    GinMapBinder<String, Component> componentsBinder = GinMapBinder.newMapBinder(binder(), String.class, Component.class);
    componentsBinder.addBinding("DefaultIconsComponent").to(DefaultIconsComponent.class);
    componentsBinder.addBinding("FontAwesomeInjector").to(FontAwesomeInjector.class);
    // core UI components
    install(new GinFactoryModuleBuilder().implement(WorkBenchPartController.class, WorkBenchPartControllerImpl.class).build(WorkBenchControllerFactory.class));
    bind(WorkspaceView.class).to(WorkspaceViewImpl.class).in(Singleton.class);
    bind(MainMenuView.class).to(MainMenuViewImpl.class).in(Singleton.class);
    bind(ToolbarView.class).to(ToolbarViewImpl.class);
    bind(ToolbarPresenter.class).annotatedWith(MainToolbar.class).to(ToolbarPresenter.class).in(Singleton.class);
    // dialog factory
    bind(MessageDialogFooter.class);
    bind(MessageDialogView.class).to(MessageDialogViewImpl.class);
    bind(ConfirmDialogFooter.class);
    bind(ConfirmDialogView.class).to(ConfirmDialogViewImpl.class);
    bind(ChoiceDialogFooter.class);
    bind(ChoiceDialogView.class).to(ChoiceDialogViewImpl.class);
    bind(InputDialogFooter.class);
    bind(InputDialogView.class).to(InputDialogViewImpl.class);
    install(new GinFactoryModuleBuilder().implement(MessageDialog.class, MessageDialogPresenter.class).implement(ConfirmDialog.class, ConfirmDialogPresenter.class).implement(ChoiceDialog.class, ChoiceDialogPresenter.class).implement(InputDialog.class, InputDialogPresenter.class).build(DialogFactory.class));
    // drop down list widget
    install(new GinFactoryModuleBuilder().implement(DropDownWidget.class, DropDownWidgetImpl.class).build(DropDownListFactory.class));
    // multi-split panel
    install(new GinFactoryModuleBuilder().implement(SubPanel.class, SubPanelPresenter.class).build(SubPanelFactory.class));
    install(new GinFactoryModuleBuilder().implement(SubPanelView.class, SubPanelViewImpl.class).build(SubPanelViewFactory.class));
    install(new GinFactoryModuleBuilder().implement(Tab.class, TabWidget.class).build(TabItemFactory.class));
    // miscellaneous UI components
    install(new GinFactoryModuleBuilder().implement(ConsoleButton.class, ConsoleButtonImpl.class).build(ConsoleButtonFactory.class));
    bind(StatusPanelGroupView.class).to(StatusPanelGroupViewImpl.class).in(Singleton.class);
}
Also used : IconRegistryImpl(org.eclipse.che.ide.icon.IconRegistryImpl) ToolbarPresenter(org.eclipse.che.ide.ui.toolbar.ToolbarPresenter) ChoiceDialogView(org.eclipse.che.ide.ui.dialogs.choice.ChoiceDialogView) ToolbarView(org.eclipse.che.ide.ui.toolbar.ToolbarView) ChoiceDialog(org.eclipse.che.ide.api.dialogs.ChoiceDialog) InputDialogView(org.eclipse.che.ide.ui.dialogs.input.InputDialogView) ConfirmDialogView(org.eclipse.che.ide.ui.dialogs.confirm.ConfirmDialogView) WorkspaceViewImpl(org.eclipse.che.ide.workspace.WorkspaceViewImpl) MessageDialog(org.eclipse.che.ide.api.dialogs.MessageDialog) DefaultIconsComponent(org.eclipse.che.ide.icon.DefaultIconsComponent) Component(org.eclipse.che.ide.api.component.Component) SubPanelViewFactory(org.eclipse.che.ide.ui.multisplitpanel.panel.SubPanelViewFactory) MessageDialogPresenter(org.eclipse.che.ide.ui.dialogs.message.MessageDialogPresenter) MessageDialogView(org.eclipse.che.ide.ui.dialogs.message.MessageDialogView) StatusPanelGroupViewImpl(org.eclipse.che.ide.menu.StatusPanelGroupViewImpl) SubPanelFactory(org.eclipse.che.ide.ui.multisplitpanel.SubPanelFactory) GinFactoryModuleBuilder(com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder) TabItemFactory(org.eclipse.che.ide.ui.multisplitpanel.tab.TabItemFactory) DialogFactory(org.eclipse.che.ide.api.dialogs.DialogFactory) DropDownListFactory(org.eclipse.che.ide.ui.dropdown.DropDownListFactory) WorkBenchControllerFactory(org.eclipse.che.ide.workspace.WorkBenchControllerFactory) ChoiceDialogPresenter(org.eclipse.che.ide.ui.dialogs.choice.ChoiceDialogPresenter) ConsoleButtonFactory(org.eclipse.che.ide.ui.button.ConsoleButtonFactory) MainMenuViewImpl(org.eclipse.che.ide.menu.MainMenuViewImpl)

Example 12 with GinFactoryModuleBuilder

use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.

the class WebSocketModule method configure.

@Override
protected void configure() {
    bind(WebSocketEndpoint.class).to(BasicWebSocketEndpoint.class);
    bind(WebSocketMessageTransmitter.class).to(BasicWebSocketMessageTransmitter.class);
    bind(WebSocketMessageReceiver.class).to(JsonRpcMessageReceiver.class);
    install(new GinFactoryModuleBuilder().implement(WebSocketConnection.class, DelayableWebSocketConnection.class).build(WebSocketFactory.class));
}
Also used : WebSocketMessageReceiver(org.eclipse.che.ide.websocket.ng.WebSocketMessageReceiver) WebSocketEndpoint(org.eclipse.che.ide.websocket.ng.impl.WebSocketEndpoint) BasicWebSocketEndpoint(org.eclipse.che.ide.websocket.ng.impl.BasicWebSocketEndpoint) WebSocketFactory(org.eclipse.che.ide.websocket.ng.impl.WebSocketFactory) GinFactoryModuleBuilder(com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder) WebSocketMessageTransmitter(org.eclipse.che.ide.websocket.ng.WebSocketMessageTransmitter) BasicWebSocketMessageTransmitter(org.eclipse.che.ide.websocket.ng.impl.BasicWebSocketMessageTransmitter)

Example 13 with GinFactoryModuleBuilder

use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.

the class DebugApiModule method configure.

@Override
protected void configure() {
    bind(DebuggerServiceClient.class).to(DebuggerServiceClientImpl.class).in(Singleton.class);
    install(new GinFactoryModuleBuilder().implement(BreakpointRenderer.class, BreakpointRendererImpl.class).build(BreakpointRendererFactory.class));
    bind(BreakpointManager.class).to(BreakpointManagerImpl.class).in(Singleton.class);
}
Also used : GinFactoryModuleBuilder(com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder) BreakpointRendererFactory(org.eclipse.che.ide.api.debug.BreakpointRendererFactory) DebuggerServiceClientImpl(org.eclipse.che.ide.api.debug.DebuggerServiceClientImpl)

Example 14 with GinFactoryModuleBuilder

use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.

the class ProjectImportModule method configure.

@Override
protected void configure() {
    bind(ProjectImportersServiceClient.class).to(ProjectImportersServiceClientImpl.class).in(Singleton.class);
    GinMultibinder.newSetBinder(binder(), ImportWizardRegistrar.class).addBinding().to(ZipImportWizardRegistrar.class);
    bind(ImportWizardRegistry.class).to(ImportWizardRegistryImpl.class).in(Singleton.class);
    install(new GinFactoryModuleBuilder().build(ImportWizardFactory.class));
    bind(ProjectNotificationSubscriber.class).to(ProjectNotificationSubscriberImpl.class).in(Singleton.class);
    install(new GinFactoryModuleBuilder().implement(ProjectNotificationSubscriber.class, ProjectNotificationSubscriberImpl.class).build(ImportProjectNotificationSubscriberFactory.class));
}
Also used : ImportProjectNotificationSubscriberFactory(org.eclipse.che.ide.api.project.wizard.ImportProjectNotificationSubscriberFactory) ImportWizardFactory(org.eclipse.che.ide.projectimport.wizard.ImportWizardFactory) ProjectImportersServiceClientImpl(org.eclipse.che.ide.api.project.ProjectImportersServiceClientImpl) GinFactoryModuleBuilder(com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder) ImportWizardRegistryImpl(org.eclipse.che.ide.projectimport.wizard.ImportWizardRegistryImpl) ProjectNotificationSubscriberImpl(org.eclipse.che.ide.projectimport.wizard.ProjectNotificationSubscriberImpl)

Aggregations

GinFactoryModuleBuilder (com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder)14 Component (org.eclipse.che.ide.api.component.Component)2 ToolbarPresenter (org.eclipse.che.ide.ui.toolbar.ToolbarPresenter)2 SimpleEventBus (com.google.web.bindery.event.shared.SimpleEventBus)1 Resources (org.eclipse.che.ide.Resources)1 ActionApiModule (org.eclipse.che.ide.actions.ActionApiModule)1 AppContext (org.eclipse.che.ide.api.app.AppContext)1 BreakpointRendererFactory (org.eclipse.che.ide.api.debug.BreakpointRendererFactory)1 DebuggerServiceClientImpl (org.eclipse.che.ide.api.debug.DebuggerServiceClientImpl)1 ChoiceDialog (org.eclipse.che.ide.api.dialogs.ChoiceDialog)1 DialogFactory (org.eclipse.che.ide.api.dialogs.DialogFactory)1 MessageDialog (org.eclipse.che.ide.api.dialogs.MessageDialog)1 CodeAssistantFactory (org.eclipse.che.ide.api.editor.codeassist.CodeAssistantFactory)1 FileTypeIdentifier (org.eclipse.che.ide.api.editor.filetype.FileTypeIdentifier)1 DocumentPositionMap (org.eclipse.che.ide.api.editor.partition.DocumentPositionMap)1 QuickAssistantFactory (org.eclipse.che.ide.api.editor.quickfix.QuickAssistantFactory)1 ReconcilerFactory (org.eclipse.che.ide.api.editor.reconciler.ReconcilerFactory)1 TextEditorPartView (org.eclipse.che.ide.api.editor.texteditor.TextEditorPartView)1 ExtensionRegistry (org.eclipse.che.ide.api.extension.ExtensionRegistry)1 GitServiceClientImpl (org.eclipse.che.ide.api.git.GitServiceClientImpl)1