Home » Eclipse Projects » Sirius » Start from scratch
|
Re: Start from scratch [message #1738599 is a reply to message #1738370] |
Thu, 21 July 2016 08:50 |
|
Hello,
I am not sure to understand the question. Are you looking for tutorials
on how to create a metamodel? That would be more an EMF question. There
are documentations in the Eclipse Help and online
https://www.eclipse.org/modeling/emf/docs/
Regards,
Steve
Le 20/07/2016 à 21:14, Lars Both a écrit :
> Hello everybody,
>
> is there a tutorial or maybe a video or any other ressource, that
> explains how to start working with sirius starting with nothing?
> Everything I can find is always based on the basicfamily - example.
>
> Regards
> Lars
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Start from scratch [message #1738621 is a reply to message #1738599] |
Thu, 21 July 2016 13:28 |
Lars Both Messages: 10 Registered: July 2016 |
Junior Member |
|
|
Hi Steve,
thank you for your answer.
My question was meant as "how to start working with sirius". I do have a ecore modell. All my tries to get Sirius working were futile. I always end up either at the point where classes from my modell are not found (see Screenshot) or when it seems to be working I get only a empty list to select a semantic element from (see second screenshot).
I've cross checked everything that came to mind with the basicfamily example which works just fine. There seems to be nothing important different.
I'm really out of ideas and would like to have a fool proof description on how to get from an ecore modell to a working graphical diagram and editor in sirius.
Regards
Lars
[Updated on: Thu, 21 July 2016 13:31] Report message to a moderator
|
|
|
Re: Start from scratch [message #1738623 is a reply to message #1738621] |
Thu, 21 July 2016 13:42 |
|
Hi Lars,
In your odesign, on the Viewpoint element "datavault" (child of the root
element), did you fill the "Model File Extension" with the extension of
your models ("datavault" I guess)?
On the Diagram description named datavault diagram, there is a tab
metamodels in the properties view. Is your metamodel registered?
On your node mapping named datavaultNode, the domain class is set as
"datavault.Node"?
Is your metamodel deployed or is it a project in the same Eclipse as
your Viewpoint Specification Project?
Regards,
Steve
Le 21/07/2016 à 15:28, Lars Both a écrit :
> Hi Steve,
>
> thank you for your answer.
>
> My question was meant as "how to start working with sirius". I do have a ecore modell. All my tries to get Sirius working were futile. I always end up either at the point where classes from my modell are not found (see Screenshot) or when it seems to be working I get only a empty list to select a semantic element from.
>
> I've cross checked everything that came to mind with the basicfamily example which works just fine. There seems to be nothing important different.
>
> I'm really out of ideas and would like to have a fool proof description on how to get from an ecore modell to a working graphical diagram and editor in sirius.
>
> Regards
> Lars
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Re: Start from scratch [message #1738626 is a reply to message #1738624] |
Thu, 21 July 2016 14:07 |
|
Hello,
I am not sure if it is properly deployed and know to the registry this
way. Can you try with an Eclipse Runtime? Go to Run/Run Configuration,
add a new Eclipse Application and run it. It will open a new Eclipse
(Runtime) behaving as if the plugin project in the main Eclipse are
installed. In the Eclipse Runtime, import your Viewpoint Specification
Project. This time the metamodel should be properly registered and you
should not have the issues.
Regards,
Steve
Le 21/07/2016 à 15:55, Lars Both a écrit :
> Hi Steve,
>
> that was an fast answer! Thanks!
>
> Unfortunately the answer to all but the last of your questions is yes.
>
> My metamodel and my VSP are both projects in the same eclipse.
> I already tried and installed the metamodel and the via EMF generated
> editor to this same eclipse instance (via export and install into host).
>
> I think I've exhausted most ideas that Google could provide :(
>
> Regards
> Lars
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Re: Start from scratch [message #1738680 is a reply to message #1738676] |
Fri, 22 July 2016 08:23 |
|
Hi Lars,
Yes, that's unfortunate, you probably have a small issue somewhere in
the registration of your metamodel in your environment, preventing
Sirius to work.
After creating the Ecore model, did you generate the code?
How did you create the example file? Were you able to create it via the
New/Example... wizard? In the Model Explorer view, do you see the
semantic model icon with the "M" decorator and are you able to see to
model element if you expand the tree under the file?
Regards,
Steve
Le 22/07/2016 à 09:41, Lars Both a écrit :
> Hi Steve,
>
> nothing changed when trying as you suggested.
>
> Because I thought, I've messed something up. I tried again:
>
> - create ecore model
> - create MVP based on ecore model
> - created minimalistic representations
>
> This time it validates (for now), but then if I create a modelling
> project and an example file, even with the correct extension, the
> "Viewpoints Selection" won't show my viewpoint.
>
> I've now spent another two hours trying to work around this. Trying
> various clues from this forum. To no avail.
>
> I'll give up a this point. In total I've spent 4 or 5 days on sirius
> now. I'll happily try again should a tutorial or video explaining the
> start-with-nothing-use-case ever exist...
>
> Thanks for your fast responses though! I really appreciate it.
>
> Regards
> Lars
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Start from scratch [message #1738682 is a reply to message #1738680] |
Fri, 22 July 2016 08:44 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
Perhaps you are hitting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=495611.
Have you Validated your model? the bug suggests that any validation
error may inhibit Siriius.
Did you fix a validation error? the bug suggests that Sirius seems to
remember the error long after the fix. Try a rename.
Regards
Ed Willink
On 22/07/2016 09:23, Steve Monnier wrote:
> Hi Lars,
>
> Yes, that's unfortunate, you probably have a small issue somewhere in
> the registration of your metamodel in your environment, preventing
> Sirius to work.
> After creating the Ecore model, did you generate the code?
> How did you create the example file? Were you able to create it via
> the New/Example... wizard? In the Model Explorer view, do you see the
> semantic model icon with the "M" decorator and are you able to see to
> model element if you expand the tree under the file?
>
> Regards,
> Steve
>
> Le 22/07/2016 à 09:41, Lars Both a écrit :
>> Hi Steve,
>>
>> nothing changed when trying as you suggested.
>>
>> Because I thought, I've messed something up. I tried again:
>>
>> - create ecore model
>> - create MVP based on ecore model
>> - created minimalistic representations
>>
>> This time it validates (for now), but then if I create a modelling
>> project and an example file, even with the correct extension, the
>> "Viewpoints Selection" won't show my viewpoint.
>>
>> I've now spent another two hours trying to work around this. Trying
>> various clues from this forum. To no avail.
>>
>> I'll give up a this point. In total I've spent 4 or 5 days on sirius
>> now. I'll happily try again should a tutorial or video explaining the
>> start-with-nothing-use-case ever exist...
>>
>> Thanks for your fast responses though! I really appreciate it.
>>
>> Regards
>> Lars
>
>
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
|
| |
Re: Start from scratch [message #1738686 is a reply to message #1738683] |
Fri, 22 July 2016 08:54 |
|
Hello Felix,
If I remember correctly it was an attempt to provide a Class diagram
helping to create your metamodel indeed but that was not completed and
not added to Sirius.
Regards,
Steve
Le 22/07/2016 à 10:48, Felix Dorner a écrit :
> Steve, I remember there was a GSOC project "Initialize a Viewpoint
> description from a semantic model". Did anything useful come out of this?
>
> Felix
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| | | |
Re: Start from scratch [message #1738713 is a reply to message #1738704] |
Fri, 22 July 2016 13:26 |
|
Hi Lars,
You can provide a zip of your projects (metamodels, edit, editor and
design). You can also zip both worskpace folders to try to reproduce as
close as possible but that might be a big zip depending on your metadata.
Regards,
Steve
Le 22/07/2016 à 14:38, Lars Both a écrit :
> Hi Ed,
>
> I'm really lost here. In my case, what should I provide?
>
> The workspace of my initially started obeo designer?
> The workspace of the subsequent started "Run configuration"-instances?
> (Here are my projects located)
> Only some projects of the workspaces in the "Run configuration"-workspaces?
> Just Everything?
> Could I delete the .plugins directory from .metadata in my archive,
> because it really inflates the archive?
>
> Regards Lars
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| | |
Re: Start from scratch [message #1738830 is a reply to message #1738825] |
Mon, 25 July 2016 09:56 |
|
Hello,
Great, I am glad you solved your issue.
Regards,
Steve
Le 25/07/2016 à 11:14, Lars Both a écrit :
> I just found this entry:
>
> https://www.eclipse.org/forums/index.php/m/1736069/?srch=selection#msg_1736069
>
>
> After following what Laurent Fasani suggested, my current problems are
> gone. At least with another new very simple ecore model. I'll now try
> with my model.
>
> This is what I had to do:
>
> Quote:
>> As said in the previous post, a good way is to generate meta model in
>> your dev eclipse and launch a runtime in which you can:
>> 1- create your modeling project and a an instance of your model(It is
>> available as your meta model is deployed in your runtime)
>> 2- create a VSP [1]
>> 3- activate the viewpoint on your modeling project
>>
>> So each time you change your meta model, restart your runtime
>> In your runtime instance, if you call service[2] in your VSM (odesign)
>> with service: or aql: interpreter, you can directly test it in your
>> modeling project even if the VSP plugin is not deployed.
>
>
> Finally something good happened on an monday morning. Let's see what the
> week brings ;)
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Start from scratch [message #1738837 is a reply to message #1738830] |
Mon, 25 July 2016 10:24 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
Has a bug been raised for this?
It seems clear that the current ergonomics are such as to drive some new
users to distraction and no doubt cause the less co-operative or
persistent to just give up.
Regards
Ed Willink
On 25/07/2016 10:56, Steve Monnier wrote:
> Hello,
>
> Great, I am glad you solved your issue.
>
> Regards,
> Steve
>
> Le 25/07/2016 à 11:14, Lars Both a écrit :
>> I just found this entry:
>>
>> https://www.eclipse.org/forums/index.php/m/1736069/?srch=selection#msg_1736069
>>
>>
>>
>> After following what Laurent Fasani suggested, my current problems are
>> gone. At least with another new very simple ecore model. I'll now try
>> with my model.
>>
>> This is what I had to do:
>>
>> Quote:
>>> As said in the previous post, a good way is to generate meta model in
>>> your dev eclipse and launch a runtime in which you can:
>>> 1- create your modeling project and a an instance of your model(It is
>>> available as your meta model is deployed in your runtime)
>>> 2- create a VSP [1]
>>> 3- activate the viewpoint on your modeling project
>>>
>>> So each time you change your meta model, restart your runtime
>>> In your runtime instance, if you call service[2] in your VSM (odesign)
>>> with service: or aql: interpreter, you can directly test it in your
>>> modeling project even if the VSP plugin is not deployed.
>>
>>
>> Finally something good happened on an monday morning. Let's see what the
>> week brings ;)
>
>
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
|
| | | | | | | | |
Goto Forum:
Current Time: Fri Apr 19 03:39:13 GMT 2024
Powered by FUDForum. Page generated in 0.03911 seconds
|