|
Re: quick fix in xtext [message #1073879 is a reply to message #1073875] |
Thu, 25 July 2013 17:32 |
|
Hi,
i am not quite sure what you are targeting with this question
the error methods in the validator have a String... varargs
param that allows you to pass data.
These will be available via org.eclipse.xtext.validation.Issue.getData()
in the quickfix provider
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: quick fix in xtext [message #1073883 is a reply to message #1073879] |
Thu, 25 July 2013 17:44 |
Yueming Hong Messages: 87 Registered: April 2013 |
Member |
|
|
Ok thanks Christ.
I once use the quickfix in java, but now the xtext changes the source file into xtend and it seems that the syntax which works in java no longer works in xtend: the new ISemanticModification{} is not recognized.
can you give the equivalent codes to these:
acceptor.accept(issue, 'tag error', 'no tagsdfs', '', new ISemanticModification{
public void apply(final EObject element, IModificationContext context) {
createDefaultValue((KeyValuePair) element, "a");
}
})
Thanks.
[Updated on: Thu, 25 July 2013 17:45] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds