use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.
the class IDEClientModule method configure.
/** {@inheritDoc} */
@Override
protected void configure() {
bind(BootstrapController.class).in(Singleton.class);
bind(StyleInjector.class).in(Singleton.class);
install(new GinFactoryModuleBuilder().implement(PartButton.class, PartButtonWidget.class).implement(EditorTab.class, EditorTabWidget.class).build(TabItemFactory.class));
bind(ResolvingProjectStateHolderRegistry.class).to(ResolvingProjectStateHolderRegistryImpl.class);
bind(EditorPartStack.class).to(EditorPartStackPresenter.class);
install(new GinFactoryModuleBuilder().implement(SplitEditorPartView.class, SplitEditorPartViewImpl.class).build(SplitEditorPartViewFactory.class));
}
use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder 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();
}
use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.
the class SubversionGinModule method configure.
/**
* {@inheritDoc}
*/
@Override
protected void configure() {
bind(SubversionClientService.class).to(SubversionClientServiceImpl.class).in(Singleton.class);
GinMultibinder.newSetBinder(binder(), ImportWizardRegistrar.class).addBinding().to(SubversionImportWizardRegistrar.class);
bind(SubversionProjectImporterView.class).to(SubversionProjectImporterViewImpl.class).in(Singleton.class);
bind(SubversionOutputConsoleView.class).to(SubversionOutputConsoleViewImpl.class);
bind(UpdateToRevisionView.class).to(UpdateToRevisionViewImpl.class).in(Singleton.class);
bind(SwitchView.class).to(SwitchViewImpl.class).in(Singleton.class);
bind(LocationSelectorView.class).to(LocationSelectorViewImpl.class).in(Singleton.class);
bind(ResolveView.class).to(ResolveViewImpl.class).in(Singleton.class);
bind(ExportView.class).to(ExportViewImpl.class).in(Singleton.class);
bind(ShowLogsView.class).to(ShowLogsViewImpl.class).in(Singleton.class);
bind(PropertyEditorView.class).to(PropertyEditorViewImpl.class).in(Singleton.class);
bind(CommitView.class).to(CommitViewImpl.class).in(Singleton.class);
bind(DiffViewerView.class).to(DiffViewerViewImpl.class).in(Singleton.class);
bind(SubversionCredentialsDialog.class).to(SubversionCredentialsDialogImpl.class);
install(new GinFactoryModuleBuilder().implement(ChoiceDialog.class, ChoiceDialogPresenter.class).build(ChoiceDialogFactory.class));
bind(ChoiceDialogView.class).to(ChoiceDialogViewImpl.class);
install(new GinFactoryModuleBuilder().implement(SubversionOutputConsole.class, SubversionOutputConsolePresenter.class).build(SubversionOutputConsoleFactory.class));
}
use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.
the class GitGinModule method configure.
/** {@inheritDoc} */
@Override
protected void configure() {
GinMultibinder.newSetBinder(binder(), ImportWizardRegistrar.class).addBinding().to(GitImportWizardRegistrar.class);
GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class).addBinding().to(CommitterPreferencePresenter.class);
bind(AddToIndexView.class).to(AddToIndexViewImpl.class).in(Singleton.class);
bind(ResetToCommitView.class).to(ResetToCommitViewImpl.class).in(Singleton.class);
bind(RemoveFromIndexView.class).to(RemoveFromIndexViewImpl.class).in(Singleton.class);
bind(RevisionListView.class).to(RevisionListViewImpl.class).in(Singleton.class);
bind(CommitView.class).to(CommitViewImpl.class).in(Singleton.class);
bind(ChangedListView.class).to(ChangedListViewImpl.class).in(Singleton.class);
bind(BranchView.class).to(BranchViewImpl.class).in(Singleton.class);
bind(BranchListView.class).to(BranchListViewImpl.class).in(Singleton.class);
bind(MergeView.class).to(MergeViewImpl.class).in(Singleton.class);
bind(ResetFilesView.class).to(ResetFilesViewImpl.class).in(Singleton.class);
bind(RemoteView.class).to(RemoteViewImpl.class).in(Singleton.class);
bind(AddRemoteRepositoryView.class).to(AddRemoteRepositoryViewImpl.class).in(Singleton.class);
bind(PushToRemoteView.class).to(PushToRemoteViewImpl.class).in(Singleton.class);
bind(FetchView.class).to(FetchViewImpl.class).in(Singleton.class);
bind(PullView.class).to(PullViewImpl.class).in(Singleton.class);
bind(HistoryView.class).to(HistoryViewImpl.class).in(Singleton.class);
bind(GitOutputPartView.class).to(GitOutputPartViewImpl.class);
install(new GinFactoryModuleBuilder().implement(GitOutputConsole.class, GitOutputConsolePresenter.class).build(GitOutputConsoleFactory.class));
bind(GitCheckoutStatusNotificationOperation.class).asEagerSingleton();
}
use of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder in project che by eclipse.
the class EditorApiModule method configure.
@Override
protected void configure() {
bind(EditorAgent.class).to(EditorAgentImpl.class).in(Singleton.class);
bind(UserActivityManager.class).in(Singleton.class);
bind(EditorRegistry.class).to(EditorRegistryImpl.class).in(Singleton.class);
bind(EditorPartStackView.class);
bind(EditorContentSynchronizer.class).to(EditorContentSynchronizerImpl.class).in(Singleton.class);
bind(EditorGroupSynchronization.class).to(EditorGroupSynchronizationImpl.class);
// the text editor view
bind(TextEditorPartView.class).to(TextEditorPartViewImpl.class);
// Bind the file type identifier
bind(FileTypeIdentifier.class).to(MultipleMethodFileIdentifier.class);
// bind the document storage
bind(DocumentStorage.class);
// bind the default editor
bind(EditorProvider.class).annotatedWith(Names.named("defaultEditor")).to(DefaultTextEditorProvider.class);
// bind the info panel
bind(InfoPanel.class);
// bind the document position model
bind(DocumentPositionMap.class).to(DocumentPositionMapImpl.class);
// bind the reconciler
install(new GinFactoryModuleBuilder().implement(Reconciler.class, ReconcilerWithAutoSave.class).build(ReconcilerFactory.class));
// bind the code assistant and quick assistant
install(new GinFactoryModuleBuilder().implement(CodeAssistant.class, CodeAssistantImpl.class).build(CodeAssistantFactory.class));
install(new GinFactoryModuleBuilder().implement(QuickAssistAssistant.class, QuickAssistAssistantImpl.class).build(QuickAssistantFactory.class));
// bind the quick assist widget factory
install(new GinFactoryModuleBuilder().build(QuickAssistWidgetFactory.class));
install(new GinFactoryModuleBuilder().build(EditorTabContextMenuFactory.class));
install(new GinFactoryModuleBuilder().build(RecentFileActionFactory.class));
bind(RecentFileList.class).to(RecentFileStore.class).in(Singleton.class);
}
Aggregations