finished dsl assignment 1
[des2015.git] / dsl / runtime / src / robots / missions / formatting / TaskDSLFormatter.xtend
1 /*
2 * generated by Xtext
3 */
4 package robots.missions.formatting
5
6 import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
7 import org.eclipse.xtext.formatting.impl.FormattingConfig
8 // import com.google.inject.Inject;
9 // import robots.missions.services.TaskDSLGrammarAccess
10
11 /**
12 * This class contains custom formatting declarations.
13 *
14 * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#formatting
15 * on how and when to use it.
16 *
17 * Also see {@link org.eclipse.xtext.xtext.XtextFormattingTokenSerializer} as an example
18 */
19 class TaskDSLFormatter extends AbstractDeclarativeFormatter {
20
21 // @Inject extension TaskDSLGrammarAccess
22
23 override protected void configureFormatting(FormattingConfig c) {
24 // It's usually a good idea to activate the following three statements.
25 // They will add and preserve newlines around comments
26 // c.setLinewrap(0, 1, 2).before(SL_COMMENTRule)
27 // c.setLinewrap(0, 1, 2).before(ML_COMMENTRule)
28 // c.setLinewrap(0, 1, 1).after(ML_COMMENTRule)
29 }
30 }