Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Recover OCL statement String From OCLExpression Object
Recover OCL statement String From OCLExpression Object [message #1243698] Tue, 11 February 2014 05:18 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

is there any way to get valid OCL statement in String format From OCLExpression Object?

Cheers,
Re: Recover OCL statement String From OCLExpression Object [message #1243701 is a reply to message #1243698] Tue, 11 February 2014 05:21 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi

Use the org.eclipse.ocl.examples.pivot.prettyprint.PrettyPrinter.

(I'm afraid the auto-indented linewrpapping is a bit buggy.)

Regards

Ed Willink

On 11/02/2014 10:18, ModelGeek Mising name wrote:
> Hi,
>
> is there any way to get valid OCL statement in String format From
> OCLExpression Object?
>
> Cheers,
Re: Recover OCL statement String From OCLExpression Object [message #1243719 is a reply to message #1243701] Tue, 11 February 2014 05:53 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
thank you!
it worked very nice.
Previous Topic:Help with OCL function
Next Topic:Imact Analyzer + Code Generation
Goto Forum:
  


Current Time: Fri Jul 25 06:47:56 EDT 2014

Powered by FUDForum. Page generated in 0.03283 seconds