Last change
on this file since 437 was
437,
checked in by Mateusz Poszwa, 9 years ago
|
Added Framclipse as developed by Bartosz Kukawka and Tomek Maciejewski in 2010
|
-
Property svn:eol-style set to
native
|
File size:
756 bytes
|
Line | |
---|
1 | |
---|
2 | package com.framsticks.framclipse.ui.quickfix; |
---|
3 | |
---|
4 | import org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider; |
---|
5 | |
---|
6 | public class FramScriptQuickfixProvider extends DefaultQuickfixProvider { |
---|
7 | |
---|
8 | // @Fix(MyJavaValidator.INVALID_TYPE_NAME) |
---|
9 | // public void capitalizeName(final Issue issue, IssueResolutionAcceptor acceptor) { |
---|
10 | // acceptor.accept(issue, "Capitalize name", "Capitalize name of type", "upcase.png", new IModification() { |
---|
11 | // public void apply(IModificationContext context) throws BadLocationException { |
---|
12 | // IXtextDocument xtextDocument = context.getXtextDocument(); |
---|
13 | // String firstLetter = xtextDocument.get(issue.getOffset(), 1); |
---|
14 | // xtextDocument.replace(issue.getOffset(), 1, Strings.toFirstUpper(firstLetter)); |
---|
15 | // } |
---|
16 | // }); |
---|
17 | // } |
---|
18 | |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.