diff options
Diffstat (limited to 'org.eclipse.osbp.xtext.datainterchange/src/org/eclipse/osbp/xtext/datainterchange/formatting/DataDSLFormatter.xtend')
-rw-r--r-- | org.eclipse.osbp.xtext.datainterchange/src/org/eclipse/osbp/xtext/datainterchange/formatting/DataDSLFormatter.xtend | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/org.eclipse.osbp.xtext.datainterchange/src/org/eclipse/osbp/xtext/datainterchange/formatting/DataDSLFormatter.xtend b/org.eclipse.osbp.xtext.datainterchange/src/org/eclipse/osbp/xtext/datainterchange/formatting/DataDSLFormatter.xtend index 5a5b23a..f332944 100644 --- a/org.eclipse.osbp.xtext.datainterchange/src/org/eclipse/osbp/xtext/datainterchange/formatting/DataDSLFormatter.xtend +++ b/org.eclipse.osbp.xtext.datainterchange/src/org/eclipse/osbp/xtext/datainterchange/formatting/DataDSLFormatter.xtend @@ -14,16 +14,15 @@ * This copyright notice shows up in the generated Java code * */ - package org.eclipse.osbp.xtext.datainterchange.formatting -import com.google.inject.Inject; +import com.google.inject.Inject +import org.eclipse.osbp.xtext.oxtype.formatting.GenericFormatter +import org.eclipse.osbp.xtext.oxtype.services.OXtypeGrammarAccess import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter import org.eclipse.xtext.formatting.impl.FormattingConfig -import org.eclipse.osbp.utils.xtext.GenericFormatter -import org.eclipse.xtext.xbase.services.XtypeGrammarAccess -//import org.eclipse.osbp.xtext.datainterchange.services.DataDSLGrammarAccess +//import org.eclipse.osbp.xtext.datainterchange.services.DataDSLGrammarAccess /** * This class contains custom formatting description. * @@ -34,13 +33,13 @@ import org.eclipse.xtext.xbase.services.XtypeGrammarAccess */ class DataDSLFormatter extends AbstractDeclarativeFormatter { -// @Inject extension DataDSLGrammarAccess - @Inject XtypeGrammarAccess grammarAccess + // @Inject extension DataDSLGrammarAccess + @Inject OXtypeGrammarAccess grammarAccess override protected void configureFormatting(FormattingConfig c) { val genericFormatter = new GenericFormatter() - genericFormatter.formatFirstLevelBlocks( c, grammar.grammar, "DataInterchange", "DataInterchangeImport" ) - genericFormatter.genericFormatting( c, grammar, grammarAccess ) + genericFormatter.formatFirstLevelBlocks(c, grammar.grammar, "DataInterchange") + genericFormatter.genericFormatting(c, grammar, grammarAccess) } } |