Skip to content

Commit

Permalink
[lang] Add generator of Inline annotations.
Browse files Browse the repository at this point in the history
see #375

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Aug 23, 2016
1 parent b31758c commit eda6937
Show file tree
Hide file tree
Showing 16 changed files with 1,166 additions and 239 deletions.
19 changes: 19 additions & 0 deletions eclipse-sarl/plugins/io.sarl.lang.mwe2/GenerateSARL2.mwe2
Expand Up @@ -514,6 +514,11 @@ Workflow {
to = "io.sarl.lang.typesystem.SARLReentrantTypeResolver"
override = true
}
runtime = {
bind = "io.sarl.lang.generator.IGeneratorConfigProvider2"
to = "io.sarl.lang.generator.GeneratorConfigProvider2"
}


ui = {
bind = "org.eclipse.xtend.ide.contentassist.javadoc.XtendJavaDocContentAssistProcessor"
Expand Down Expand Up @@ -570,6 +575,11 @@ Workflow {
annotatedWithName = "smartCaretPreferenceInitializer"
to = "io.sarl.lang.ui.preferences.SARLPreferenceStoreInitializer"
}
ui = {
bind = "org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer"
annotatedWithName = "SarlBuilderPreferences"
to = "io.sarl.lang.ui.preferences.SARLBuilderPreferenceAccess$Initializer"
}
ui = {
bind = "org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator"
to = "io.sarl.lang.ui.highlighting.SARLHighlightingCalculator"
Expand Down Expand Up @@ -621,6 +631,15 @@ Workflow {
override = true
functionName = "bindIImageDescriptorHelper"
}
ui = {
bind = "io.sarl.lang.generator.IGeneratorConfigProvider2"
to = "io.sarl.lang.ui.builder.EclipseGeneratorConfigProvider2"
}
ui = {
bind = "org.eclipse.xtext.builder.preferences.BuilderConfigurationBlock"
to = "io.sarl.lang.ui.preferences.SARLBuilderConfigurationBlock"
override = true
}

both = {
bind = "org.eclipse.xtext.generator.IContextualOutputConfigurationProvider"
Expand Down
Expand Up @@ -78,6 +78,8 @@
import io.sarl.lang.documentation.SarlDocumentationProvider;
import io.sarl.lang.formatting2.SARLFormatter;
import io.sarl.lang.formatting2.SARLFormatterPreferenceKeys;
import io.sarl.lang.generator.GeneratorConfigProvider2;
import io.sarl.lang.generator.IGeneratorConfigProvider2;
import io.sarl.lang.generator.SarlOutputConfigurationProvider;
import io.sarl.lang.jvmmodel.SARLJvmModelInferrer;
import io.sarl.lang.jvmmodel.SarlJvmModelAssociations;
Expand Down Expand Up @@ -500,6 +502,11 @@ public Class<? extends SARLExpressionHelper> bindSARLExpressionHelper() {
return SARLExpressionHelper.class;
}

// contributed by io.sarl.lang.mwe2.binding.InjectionFragment2 [Bindings provided by SARL API]
public Class<? extends IGeneratorConfigProvider2> bindIGeneratorConfigProvider2() {
return GeneratorConfigProvider2.class;
}

// contributed by io.sarl.lang.mwe2.binding.InjectionFragment2 [Bindings provided by SARL API]
public Class<? extends EarlyExitValidator> bindEarlyExitValidator() {
return SARLEarlyExitValidator.class;
Expand Down

0 comments on commit eda6937

Please sign in to comment.