Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/formatting2/BaseFormatter.xtend')
-rw-r--r--plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/formatting2/BaseFormatter.xtend3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/formatting2/BaseFormatter.xtend b/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/formatting2/BaseFormatter.xtend
index 10708c01e..448b10312 100644
--- a/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/formatting2/BaseFormatter.xtend
+++ b/plugins/org.eclipse.etrice.core.common/src/org/eclipse/etrice/core/common/formatting2/BaseFormatter.xtend
@@ -57,17 +57,20 @@ class BaseFormatter extends AbstractFormatter2 {
def dispatch void format(Import it, extension IFormattableDocument document) {
regionFor.keywords(importAccess.importKeyword_0, importAccess.modelKeyword_1_1).forEach[append[oneSpace]]
regionFor.keyword(importAccess.fromKeyword_1_0_1).surround[oneSpace]
+ eContents.forEach[format] // format children
}
def dispatch void format(AnnotationType it, extension IFormattableDocument document) {
regionFor.keyword(annotationTypeAccess.annotationTypeKeyword_0).append[oneSpace]
regionFor.keyword(annotationTypeAccess.targetKeyword_4).prepend[newLine]
attributes.forEach[prepend[newLine]]
+ eContents.forEach[format] // format children
}
def dispatch void format(Annotation it, extension IFormattableDocument document) {
regionFor.keyword(annotationAccess.commercialAtKeyword_0).append[noSpace]
attributes.forEach[prepend[newLine]]
+ eContents.forEach[format] // format children
}
}

Back to the top