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
diff --git a/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 b/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
new file mode 100644 (file)
index 0000000..ac3123f
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * generated by Xtext
+ */
+package org.opendaylight.nemo.tool.eclipse.plugin.ui.quickfix
+
+//import org.eclipse.xtext.ui.editor.quickfix.Fix
+//import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor
+//import org.eclipse.xtext.validation.Issue
+
+/**
+ * Custom quickfixes.
+ *
+ * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#quick-fixes
+ */
+class EditorQuickfixProvider extends org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider {
+
+//     @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)
+//             ]
+//     }
+}