mirror of
https://github.com/Minres/RDL-Editor.git
synced 2025-07-08 00:33:27 +02:00
Iniital checkin
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* generated by Xtext 2.12.0
|
||||
*/
|
||||
package com.minres.rdl.ui.quickfix
|
||||
|
||||
import org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
|
||||
|
||||
/**
|
||||
* Custom quickfixes.
|
||||
*
|
||||
* See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#quick-fixes
|
||||
*/
|
||||
class RDLQuickfixProvider extends DefaultQuickfixProvider {
|
||||
|
||||
// @Fix(RDLValidator.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)
|
||||
// ]
|
||||
// }
|
||||
}
|
Reference in New Issue
Block a user