Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359921

Summary: [Eugenia] Add polygon and SVG figures and allow for omitting labels
Product: [Modeling] Epsilon Reporter: Antonio Garcia-Dominguez <agarcdomi>
Component: CoreAssignee: Antonio Garcia-Dominguez <agarcdomi>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: dkolovos, louis
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: interim

Description Antonio Garcia-Dominguez CLA 2011-10-04 16:52:50 EDT
I've been working on an improved version of our flowchart example for a chapter in a Spanish book about modelling technologies, but I have an important constraint: due to space constraints, I can't use a polishing transformation, and custom figures are out of the scope of the book.

Since ellipses and boxes wouldn't quite cut it for this example, I thought it'd be best to slightly improve Eugenia with a few new built-in shapes and finally add support for removing labels from a node. Being forced to use a polishing transformation just to remove something which shouldn't have been there always felt a bit irritating, after all.

Examples:

- This would draw a triangle:

  @gmf.node(figure='polygon', polygon.x="0 10 5", polygon.y="0 0 5")

- This would draw a SVG file in a plugin:

  @gmf.node(figure='svg', svg.uri='platform:/plugin/my.plugin/icons/icon.svg')

- This would omit creating a label for the node (but not its attributes):

  @gmf.node(label.placement='none')

I've committed code which implements all these cases to SVN. SVG support is a little special, as it depends on the experimental GMF SDK. I also needed to extend the FixGMFGen built-in transformation so it could add the o.e.gmf.runtime.lite and o.e.gmf.runtime.lite.svg plugins to the GmfGen's requiredPlugins whenever a SVGFigure had been used somewhere in the GmfGraph model.

Dimitris, Louis: could you take a look? The Eugenia regression tests still pass as usual, so I think I haven't broken anything, but just in case.
Comment 1 Antonio Garcia-Dominguez CLA 2011-10-04 16:54:37 EDT
Marking as fixed, as I just committed it to SVN.

BTW, it'd be nice if we could get an interim release shortly after closing this bug, so I could be sure there was a prepackaged version of Eugenia for the example in the book.
Comment 2 Dimitris Kolovos CLA 2011-10-06 11:49:58 EDT
Thanks for implementing this. I've had a look at it and it looks fine to me. I'll try to release a new interim version that integrates this within the next few days.
Comment 3 Dimitris Kolovos CLA 2011-10-07 04:25:23 EDT
This has now been integrated in the latest interim version.
Comment 4 Antonio Garcia-Dominguez CLA 2011-10-12 04:38:50 EDT
I have listed these properties in the Eugenia article in the website.
Comment 5 Dimitris Kolovos CLA 2012-11-08 16:16:56 EST
Fixed in 1.0