Skip to content

Commit

Permalink
Fix typo in CodeMiningFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
awadammar committed Oct 16, 2024
1 parent a319f0d commit dfc2175
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ class CodeMiningFragment extends AbstractStubGeneratingFragment {
projectConfig.eclipsePlugin.manifest.importedPackages += "org.eclipse.xtext.ui.codemining;resolution:=optional"
}
new GuiceModuleAccess.BindingFactory => [
addConfiguredBinding("CodeMinding", '''
addConfiguredBinding("CodeMining", '''
binder.bind(«'org.eclipse.jface.text.codemining.ICodeMiningProvider'.typeRef».class)
.to(«codeMiningProviderClass».class);
binder.bind(«'org.eclipse.xtext.ui.editor.reconciler.IReconcileStrategyFactory'.typeRef».class).annotatedWith(«Names.typeRef».named("codeMinding"))
binder.bind(«'org.eclipse.xtext.ui.editor.reconciler.IReconcileStrategyFactory'.typeRef».class).annotatedWith(«Names.typeRef».named("CodeMining"))
.to(«"org.eclipse.xtext.ui.codemining.XtextCodeMiningReconcileStrategy".typeRef».Factory.class);
''')
contributeTo(language.eclipsePluginGenModule)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* This fragment activates code mining functionalities and generates the appropriate stubs.
*
* @author René Purrio - Initial contribution and API
* @author René Purrio - Initial contribution and API
* @author Karsten Thoms - Review and improvements on initial implementation
* @since 2.14
*/
Expand Down Expand Up @@ -79,7 +79,7 @@ protected void appendTo(StringConcatenationClient.TargetStringConcatenation _bui
_builder.append(".class).annotatedWith(");
TypeReference _typeRef_2 = TypeReference.typeRef(Names.class);
_builder.append(_typeRef_2);
_builder.append(".named(\"codeMinding\"))");
_builder.append(".named(\"codeMining\"))");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append(".to(");
Expand All @@ -89,7 +89,7 @@ protected void appendTo(StringConcatenationClient.TargetStringConcatenation _bui
_builder.newLineIfNotEmpty();
}
};
it.addConfiguredBinding("CodeMinding", _client);
it.addConfiguredBinding("CodeMining", _client);
it.contributeTo(this.getLanguage().getEclipsePluginGenModule());
};
ObjectExtensions.<GuiceModuleAccess.BindingFactory>operator_doubleArrow(_bindingFactory, _function);
Expand Down

0 comments on commit dfc2175

Please sign in to comment.