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);
}
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));
}
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);
}
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));
}
Aggregations