diff --git a/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/XtextUiModule.java b/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/XtextUiModule.java index 7d0c43b49b..7968f98b3c 100644 --- a/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/XtextUiModule.java +++ b/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/XtextUiModule.java @@ -22,6 +22,8 @@ import org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider; import org.eclipse.xtext.ui.editor.contentassist.XtextContentAssistProcessor; import org.eclipse.xtext.ui.editor.folding.IFoldingRegionProvider; +import org.eclipse.xtext.ui.editor.formatting2.ContentFormatterFactory; +import org.eclipse.xtext.ui.editor.formatting.IContentFormatterFactory; import org.eclipse.xtext.ui.editor.hyperlinking.IHyperlinkHelper; import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; import org.eclipse.xtext.ui.editor.outline.actions.IOutlineContribution; @@ -195,4 +197,9 @@ public void configureIShowWhitespaceCharactersActionContributor(Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("Show Whitespace")).to(ShowWhitespaceCharactersActionContributor.class); } + @Override + public Class bindIContentFormatterFactory() { + return ContentFormatterFactory.class; + } + }