Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Line break after multi-line comments using serialization
Line break after multi-line comments using serialization [message #1000351] Mon, 14 January 2013 10:14 Go to next message
Marco Naddeo is currently offline Marco Naddeo
Messages: 62
Registered: November 2012
Member
Hi Smile

how can I insert a line break after multi-line comments when I serialize an EMF model?

For example, I want this:

/* This is a
multi-line
comment */
public void myMethod() {
...
}


and not this:

/* This is a
multi-line
comment */ public void myMethod() {
...
}


I'm using MyDslFormatter (extending AbstractDeclarativeFormatter) to format the code, but what about comments? Rolling Eyes

Thanks in advance,
Marco
Re: Line break after multi-line comments using serialization [message #1000816 is a reply to message #1000351] Tue, 15 January 2013 08:17 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6144
Registered: July 2009
Senior Member
Hi,

staight forwared doesnt work
c.setLinewrap().after(f.getML_COMMENTRule());

~Christian
Previous Topic:XText TextViewer instead of Editor
Next Topic:Use xmi elements inside the dsl
Goto Forum:
  


Current Time: Fri Aug 01 08:07:11 EDT 2014

Powered by FUDForum. Page generated in 0.01496 seconds