Search in sources :

Example 1 with EditorPropertiesSection

use of org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPropertiesSection in project che by eclipse.

the class EditorPreferencesModule method configure.

@Override
protected void configure() {
    GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class).addBinding().to(EditorPreferencePresenter.class);
    bind(EditorPreferenceView.class).to(EditorPreferenceViewImpl.class);
    bind(KeymapsPreferenceView.class).to(KeymapsPreferenceViewImpl.class);
    bind(KeyMapsPreferencePresenter.class);
    install(new GinFactoryModuleBuilder().implement(EditorPreferenceSection.class, EditorPropertiesSectionPresenter.class).build(EditorPreferenceSectionFactory.class));
    GinMultibinder<EditorPropertiesSection> editorPropertiesSectionBinder = GinMultibinder.newSetBinder(binder(), EditorPropertiesSection.class);
    editorPropertiesSectionBinder.addBinding().to(TabsPropertiesSection.class);
    editorPropertiesSectionBinder.addBinding().to(LanguageToolsPropertiesSection.class);
    editorPropertiesSectionBinder.addBinding().to(TypingPropertiesSection.class);
    editorPropertiesSectionBinder.addBinding().to(WhiteSpacesPropertiesSection.class);
    editorPropertiesSectionBinder.addBinding().to(RulersPropertiesSection.class);
}
Also used : EditorPropertiesSection(org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPropertiesSection) EditorPreferenceSectionFactory(org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPreferenceSectionFactory) GinFactoryModuleBuilder(com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder) KeymapsPreferenceView(org.eclipse.che.ide.editor.preferences.keymaps.KeymapsPreferenceView)

Example 2 with EditorPropertiesSection

use of org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPropertiesSection in project che by eclipse.

the class EditorPropertiesPresenter method onWsAgentStarted.

@Override
public void onWsAgentStarted(WsAgentStateEvent event) {
    for (EditorPropertiesSection section : sections) {
        EditorPreferenceSection editorPreferenceSection = editorPreferenceSectionFactory.create(section.getSectionTitle(), section.getProperties());
        editorPreferenceSection.go(view.getEditorSectionsContainer());
        editorPreferenceSection.setParent(parentPresenter);
        sectionsSet.add(editorPreferenceSection);
    }
}
Also used : EditorPropertiesSection(org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPropertiesSection) EditorPreferenceSection(org.eclipse.che.ide.editor.preferences.EditorPreferenceSection)

Aggregations

EditorPropertiesSection (org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPropertiesSection)2 GinFactoryModuleBuilder (com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder)1 EditorPreferenceSection (org.eclipse.che.ide.editor.preferences.EditorPreferenceSection)1 EditorPreferenceSectionFactory (org.eclipse.che.ide.editor.preferences.editorproperties.sections.EditorPreferenceSectionFactory)1 KeymapsPreferenceView (org.eclipse.che.ide.editor.preferences.keymaps.KeymapsPreferenceView)1