Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » PrettyPrinter ignors comments
PrettyPrinter ignors comments [message #1343915] Fri, 09 May 2014 14:18 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
I have tried PrettyPrinter for printing OCL statement from ExpressionInOCL.
It works fine but it ignors the comments. Is it possible to make PrettyPrinter take comments into consideration.

Cheers,
Re: PrettyPrinter ignors comments [message #1344000 is a reply to message #1343915] Fri, 09 May 2014 15:06 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Contribute an implementation to


@Override
public Object visitComment(@NonNull Comment object) {
...
}

If you start using PrettyPrint in earnest you will find that the line
wrapping code is rubbish, but not anywhere near the top of my stack.

Regards

Ed Willink

On 09/05/2014 15:18, ModelGeek Mising name wrote:
> I have tried PrettyPrinter for printing OCL statement from
> ExpressionInOCL.
> It works fine but it ignors the comments. Is it possible to make
> PrettyPrinter take comments into consideration.
>
> Cheers,
Previous Topic:Invariants in abstract EClasses
Next Topic:Is it pivot validation bug?
Goto Forum:
  


Current Time: Fri Apr 26 07:20:20 GMT 2024

Powered by FUDForum. Page generated in 0.02951 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top