All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.protelis.parser.ui.quickfix.ProtelisQuickfixProvider.xtend Maven / Gradle / Ivy

There is a newer version: 11.0.3
Show newest version
/*
 * generated by Xtext 2.15.0
 */
package org.protelis.parser.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 ProtelisQuickfixProvider extends DefaultQuickfixProvider {

//	@Fix(ProtelisValidator.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 - 2024 Weber Informatics LLC | Privacy Policy