use of org.eclipse.xtext.ide.editor.quickfix.QuickFix in project xtext-core by eclipse.
the class TestLanguageQuickFixProvider method fixLowerCaseName.
@QuickFix(TestLanguageValidator.INVALID_NAME)
public void fixLowerCaseName(DiagnosticResolutionAcceptor acceptor) {
acceptor.accept("Change element name to first upper", obj -> {
final TypeDeclaration element = (TypeDeclaration) obj;
element.setName(StringExtensions.toFirstUpper(element.getName()));
});
}
Aggregations