Search in sources :

Example 1 with DefaultIconsComponent

use of org.eclipse.che.ide.icon.DefaultIconsComponent 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)

Aggregations

GinFactoryModuleBuilder (com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder)1 Component (org.eclipse.che.ide.api.component.Component)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 DefaultIconsComponent (org.eclipse.che.ide.icon.DefaultIconsComponent)1 IconRegistryImpl (org.eclipse.che.ide.icon.IconRegistryImpl)1 MainMenuViewImpl (org.eclipse.che.ide.menu.MainMenuViewImpl)1 StatusPanelGroupViewImpl (org.eclipse.che.ide.menu.StatusPanelGroupViewImpl)1 ConsoleButtonFactory (org.eclipse.che.ide.ui.button.ConsoleButtonFactory)1 ChoiceDialogPresenter (org.eclipse.che.ide.ui.dialogs.choice.ChoiceDialogPresenter)1 ChoiceDialogView (org.eclipse.che.ide.ui.dialogs.choice.ChoiceDialogView)1 ConfirmDialogView (org.eclipse.che.ide.ui.dialogs.confirm.ConfirmDialogView)1 InputDialogView (org.eclipse.che.ide.ui.dialogs.input.InputDialogView)1 MessageDialogPresenter (org.eclipse.che.ide.ui.dialogs.message.MessageDialogPresenter)1 MessageDialogView (org.eclipse.che.ide.ui.dialogs.message.MessageDialogView)1 DropDownListFactory (org.eclipse.che.ide.ui.dropdown.DropDownListFactory)1 SubPanelFactory (org.eclipse.che.ide.ui.multisplitpanel.SubPanelFactory)1 SubPanelViewFactory (org.eclipse.che.ide.ui.multisplitpanel.panel.SubPanelViewFactory)1 TabItemFactory (org.eclipse.che.ide.ui.multisplitpanel.tab.TabItemFactory)1