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