fr.irit.smac.may.speadl.ui.quickfix.SpeADLQuickfixProvider.xtend Maven / Gradle / Ivy
The newest version!
package fr.irit.smac.may.speadl.ui.quickfix
import org.eclipse.xtext.xbase.ui.quickfix.XbaseQuickfixProvider
/**
* Custom quickfixes.
*
* see http://www.eclipse.org/Xtext/documentation.html#quickfixes
*/
class SpeADLQuickfixProvider extends XbaseQuickfixProvider {
// @Fix(MyDslValidator::INVALID_NAME)
// def capitalizeName(Issue issue, IssueResolutionAcceptor acceptor) {
// acceptor.accept(issue, 'Capitalize name', 'Capitalize the name.', 'upcase.png') [
// context |
// val xtextDocument = context.xtextDocument
// val firstLetter = xtextDocument.get(issue.offset, 1)
// xtextDocument.replace(issue.offset, 1, firstLetter.toUpperCase)
// ]
// }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy