Blog

Let’s say you need a specific shape for your modeler and this shape is directly available , you can create an SVG file (or a PNG one …) and use it as a shape. It’s fairly easy to leverage Inkscape and define your shape with it : Using Inkscape to define a shape Then just specify the path to this SVG file and you’re done. Referencing the shape in the .odesign model And here is the result : Image shape with Sirius 2.0 Problem is whatever the shape you use, for the Sirius runtime it is an image and as such a rectangle. That makes edges anchors not touching the actual border of the shape (which is within the image) and the end user of the modeler have no idea why ! You could always extend Sirius with some specific code to explicitely define the anchors but it means you have to plug into GMF’s extension points and it is non trivial compared to what you can do in the .odesign. Starting with Sirius 3.0.0M6 we extended the algorithm to shift the anchors position depending on the image ...
Tagged in: obeodesigner

Posted on in Blog
  A recurring problem when developing a graphical modeler is providing the right layout. The advantage with Sirius is it provides you with a default algorithm that performs an automatic layout of all the elements on a diagram. To illustratep the Sirius’ layout capabilities imagine that we want to visualize the hierarchy of characters in the US TV series House Of Cards. To do this we define the following metamodel: First, we used Sirius to create a diagram representing the Persons. Each person is represented by a white square with his or her name on it. By default Sirius lays out nodes from left to right and what we now have is a flat diagram, with each person on exactly the same level. However what we want to see is the White House organizational hierarchy so we need to represent the subordination link. This link is modeled using the dependsOn reference in the metamodel. Second we define a new relation based edge mapping. This edge will connect Persons, and to find the su...
Tagged in: obeo obeodesigner

Posted on in Blog
Just to announce that we (I and some Sirius commiters from Obeo) will start a series of posts about some features available in Sirius. For the ones who don’t know, Sirius is an Eclipse project to quickly define multi view workbenches based on DSL with dedicated representations. Sirius is part of the release train since Luna and its version 3.0 will be available with Mars. A modeling workbench created with Sirius is composed of a set of Eclipse editors which allow the users to create, edit and visualize EMF models. In the next weeks, you will discover posts about diagram customization, tree layout, SVG images… Stay tuned!...
Tagged in: obeodesigner

Posted on in Blog
Like last year at EclipseCon, the Obeo team will organize a BOF session about Sirius.https://www.eclipsecon.org/europe2014/bof-session/lets-practice-sirius(A BOF (Birds of feather) is an informal discussion group of members interested in a particular issue).If you already know Sirius, you can come with your first Sirius modeler.But if you just want to discover this technology, you can also come with your own work (an Ecore metamodel, an Xtext editor, etc).Finally, you can also come empty-handed to start from scratch with an example provided by the Obeo team orThe Sirius BOF ("Let's practice Sirius") will take place Wednesday the 29th in Silchersaal.During the BOF session, 10 USB keys will be provided containing Sirius bundles (linux, mac and windows) and the resources corresponding to a basic tutorial.If you plan to attend this BOF and don't want to loose time installing Sirius, you can already find these bundles and resources here: https://filetransfer.obeo.fr/browse.php?par...

Posted on in Blog
We have added a new Gallery page today on the Sirius web site:http://eclipse.org/sirius/gallery.htmlThis page presents 20 cool and noteworthy modelers already created with Sirius in various domains: Systems Engineering, Software Development, Business Configuration, etc.Configuration of plastic products manufacturingCapella Systems Engineering workbenchModeling of Android mobile applicationsConfiguration of home automation systemsThe list is not complete ... since we don't know or can't publish all what is done with Sirius, but it will be completed soon with several other examples we have in store.So, if you also did something that could be published on this page, you can submit a short description and some nice screenshots here :https://bugs.eclipse.org/bugs/show_bug.cgi?id=448492Lien d'origineAuteur d'origine: Fred...