|
|
Re: Correct Indentation [message #1060780 is a reply to message #1060730] |
Tue, 28 May 2013 12:25 |
|
I have uncommented the three lines suggested in the default implementation of the AbstractDeclarativeFormatter
c.setLinewrap(0, 1, 2).before(getGrammarAccess().getSL_COMMENTRule());
c.setLinewrap(0, 1, 2).before(getGrammarAccess().getML_COMMENTRule());
c.setLinewrap(0, 1, 1).after(getGrammarAccess().getML_COMMENTRule());
but it says the getSL_COMMENTRule and getML_COMMENTRule() methods are undefined
am I missing something?
Follow me on Twitter @andreasindico
|
|
|
|
|
|
|
Re: Correct Indentation [message #1060960 is a reply to message #1060790] |
Wed, 29 May 2013 10:15 |
|
I have managed to define a set of formatting criteria that fit with my needs. The only exceptions are comments (i.e. SL_COMMENTRule and ML_COMMENTRule) which seem to be not affected by indentation increment/decrement.
Is it possible?
Follow me on Twitter @andreasindico
|
|
|
Powered by
FUDForum. Page generated in 0.05281 seconds