|
|
|
|
Re: Max line length Formatting [message #1746414 is a reply to message #1746412] |
Fri, 28 October 2016 12:01   |
Koen Staal Messages: 70 Registered: October 2014 |
Member |
|
|
Looking through the code the maxline length should be handled in FormattableDocument. createReplacements(ITextReplacerContext).
The ITextReplacerContext always returns null on canAutowrap() which seems to prevent xtext from applying the max line length.
Does this mean every Procedure1<IHiddenRegionFormatter> should also apply setautowrap
final Procedure1<IHiddenRegionFormatter> oneSpace = new Procedure1<IHiddenRegionFormatter>() {
@Override
public void apply(final IHiddenRegionFormatter it) {
it.oneSpace();
it.autowrap();
}
};
edit: After setting autowrap xtext seems to apply the max line length.
[Updated on: Fri, 28 October 2016 12:05] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02286 seconds