|
|
Re: Register variables in xtext block of code [message #901219 is a reply to message #900973] |
Fri, 10 August 2012 07:56  |
Eclipse User |
|
|
|
Thanks a lot. I was indeed trying to solve the problem in the wrong place.
Adding a member(members) in a dummy class and then plugging in my own implementation of the generator solved it for me.
I am now having some strange problem with the formatting of the xbase expression. I will be glad if someone can help me with that
I have the following formatter:
public class MyDslFormatter extends XbaseFormatter {
@Override
protected void configureFormatting(FormattingConfig c) {
MyDslGrammarAccess grammar = (MyDslGrammarAccess) getGrammarAccess();
super.configure(c, grammar.getXbaseGrammarAccess());
}
}
If I have the same grammar as above and I try to format
{
val test = "Greetings";
test.toCharArray
test.toCharArray
test.toCharArray
}
I get
{
val test = "Greetings";
test.toCharArray test.toCharArray test.toCharArray
}
I can see that this was asked before here but my feature calls are in a XBlockExpression
Do you know what is causing this and how am I supposed to format the xbase properly
|
|
|
Powered by
FUDForum. Page generated in 0.49543 seconds