|
Re: Sample Model in Tutorial [message #1239573 is a reply to message #1239502] |
Tue, 04 February 2014 14:03 |
|
Hello,
You can define your ecore meta-model using Sirius, by creating a new Ecore Modeling Project (If you are in the Sirius perspective, simply right click on the Model Explorer view and go to New/Ecore Modeling Project). Sirius will provide a diagram to realise your meta-model.
Next to this project, create a Viewpoint Specification Project where you will be able to define your graphical descriptions in the .odesign file as described in the documentation.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Sample Model in Tutorial [message #1239598 is a reply to message #1239588] |
Tue, 04 February 2014 15:12 |
|
Hello,
If you already have your EMF project containing your metamodel, you only need the "Viewpoint Specification Project". You should not need to add a dependency to your metamodel plugins. When you will create your first Representation Description (Diagram, Table, Tree...) in the Domain Based field you should be able to access your metamodel metaclasses with the auto-completion. You can also directly reference the used metamodel in the "Metamodels" tab on the Representation Description element.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: Sample Model in Tutorial [message #1239876 is a reply to message #1239862] |
Wed, 05 February 2014 08:47 |
|
Hi,
1/ To open the Ecore Diagram provided with Sirius you have two solutions:
- Right click on your .ecore file and "open with" "Sirius Ecore Editor". This will open a transient Sirius Session that will allow you to edit your .ecore but the diagram itself will not be saved on close.
- Convert the project containing your .ecore file into a Modeling project. To do so, right click on your project, go to "Configure" contextual menu at the bottom and select "Convert to Modeling Project". Now you will have the "Viewpoint Selection" menu accessible on your project and the Ecore Diagram will be available if you activate the "Design" viewpoint.
2/ If you have a project with a model sample (example.graphe in your case) but the Viewpoint Selector doesn't show the Viewpoint you created, it might be a missing field in your odesign. Open your odesign and select your Viewpoint element. In the general tab, you have a field "Model File Extension". In your case, if you have *.graphe models, you should set in this field "graphe". Does it fix your issue?
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Sample Model in Tutorial [message #1239897 is a reply to message #1239876] |
Wed, 05 February 2014 09:31 |
cyril dufrechou Messages: 35 Registered: September 2013 |
Member |
|
|
New things:
I achieve to define new diagram, but, additional questions:
1/ is it possible (like in GMF to define the GUI defined as a plugin for ECLIPSE as GMF can do? (perhaps add it to the video at the end)
2/ in the video : 1min48, there is 4 fields in properties but when I make my own manips, I have only 3 fields without "Associated Elements Expression".
Is it correct not to have it? can I configure it ?
PS: not used in my case and in the video, but understanding why my interface is != could be great.
3/ some problems with link definition, but it seems to be due to my interpretation of your ecore model in video... (how can I attache files to this subject?..."Maximum File Size: 0KB" but the better is my screen capture to add)
Regards
[Updated on: Wed, 05 February 2014 10:13] Report message to a moderator
|
|
|
Re: Sample Model in Tutorial [message #1239913 is a reply to message #1239897] |
Wed, 05 February 2014 10:11 |
|
1/ The "Viewpoint Specification Project" is a plug-in project, so you can export it as a "Deployable plug-ins and fragment" if you want. On creation, this project also add the required extension point (org.eclipse.sirius.componentization) used to provide your viewpoint component (your odesign). I am not entirely sure that I understood your question, does this reply to it?
2/ Indeed this "Associated Elements Expression" field has been moved from the General tab to the Advanced tab since the video recording.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Sample Model in Tutorial [message #1239928 is a reply to message #1239919] |
Wed, 05 February 2014 10:36 |
|
We do not have a deployment tutorial as the Viewpoint Specification Project is a plugin project and the required extension is automatically created. You will just need to add this plugin to your deployment/build process (tycho, maven...) used for your metamodel plugins.
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Sample Model in Tutorial [message #1239938 is a reply to message #1239932] |
Wed, 05 February 2014 10:51 |
|
If your are using your mail client to post message using NNTP, you can attach an image. If you are using the web interface of the forum...I do not know if it is possible. You can upload your screenshot on an image sharer website and post the link to it here I guess.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Sample Model in Tutorial [message #1240020 is a reply to message #1239938] |
Wed, 05 February 2014 14:44 |
cyril dufrechou Messages: 35 Registered: September 2013 |
Member |
|
|
NNTP => I don't know how to do that.
But the fact the web forum doesn't allow to attach file seems to be specific to Sirius forum (because for others tools I'm able and was able)
I will explain textually my problem:
I try to define links like "parent-children" links on video.
When I define the link I can define source & target objects (selectable from ecore model) but the "target finder expression" cause an exception:
"problem Occurred" in a popup with "'refresh' has encountered a problem...
An internal error occurred during: "Refresh ".
The feature 'children' is not a valid feature"
I try to set [children/] like on the video example.
And no link are drawn in the model (just boxes)
I try the following syntaxes [self.children/], [children], [children/]
And is the same thing...
So I don't know how to investigate to be correct in my viewpoint.
(I modify my ecore to correspond with your demo in order to be able to talk about the precise thing that is blocking in my manip.)
>>> Is it possible to receive *.odesign linked with the video?
because I have basicfamilly model and *.aird but perhaps *.odesign will allow to me to understabd my error in my projects.
Regards
[Updated on: Wed, 05 February 2014 15:41] Report message to a moderator
|
|
|
Re: Sample Model in Tutorial [message #1240075 is a reply to message #1240020] |
Wed, 05 February 2014 16:48 |
|
Can you validate if you created a "Reference Based Edge Mapping" (instead of an "Element Based Edge Mapping" which has a field "Domain Base" for the semantic element to represent)?
Is "children" the name of your containing reference? If you select the source element and in the "Interpreter" view test your expression "[children/]", do you have the expected target as a result?
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Re: Sample Model in Tutorial [message #1240374 is a reply to message #1240339] |
Thu, 06 February 2014 10:05 |
|
I fixed the link to the bugzilla.
Does your expression with "children" works using the "Interpreter" view?
You can take a look to the edge mapping "EC ESupertypes" on the "Entities" diagram description of the sample org.eclipse.sirius.sample.ecore.design. It seems to be quite alike your case.
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.06228 seconds