Modidy a package name of nemo
[nemo.git] / nemo-tools / eclipse-plugin / nemo-editor / org.opendaylight.nemo.tool.eclipse.plugin.editor.ui / bin / org / opendaylight / nemo / tool / eclipse / plugin / ui / quickfix / EditorQuickfixProvider.xtend
1 /*
2  * generated by Xtext
3  */
4 package org.opendaylight.nemo.tool.eclipse.plugin.ui.quickfix
5
6 //import org.eclipse.xtext.ui.editor.quickfix.Fix
7 //import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor
8 //import org.eclipse.xtext.validation.Issue
9
10 /**
11  * Custom quickfixes.
12  *
13  * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#quick-fixes
14  */
15 class EditorQuickfixProvider extends org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider {
16
17 //      @Fix(MyDslValidator::INVALID_NAME)
18 //      def capitalizeName(Issue issue, IssueResolutionAcceptor acceptor) {
19 //              acceptor.accept(issue, 'Capitalize name', 'Capitalize the name.', 'upcase.png') [
20 //                      context |
21 //                      val xtextDocument = context.xtextDocument
22 //                      val firstLetter = xtextDocument.get(issue.offset, 1)
23 //                      xtextDocument.replace(issue.offset, 1, firstLetter.toUpperCase)
24 //              ]
25 //      }
26 }