Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » ecore design(How reuse old ecore file for build a diagram)
ecore design [message #1389054] Fri, 27 June 2014 09:07 Go to next message
guillen antonio is currently offline guillen antonio
Messages: 6
Registered: July 2013
Junior Member
I have an ecore model with more than 20 packages. I have install Luna 4.4, Sirius today.

I want create a diagram from this ecore file. How can I do. No way to found in the menus of the .ecore file or in the model directory how to do even with the new menu.
Re: ecore design [message #1389241 is a reply to message #1389054] Fri, 27 June 2014 14:31 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime Porhel
Messages: 100
Registered: July 2009
Senior Member
Hi

Le 27/06/2014 16:17, guillen antonio a écrit :
> I have an ecore model with more than 20 packages. I have install Luna
> 4.4, Sirius today.
>
> I want create a diagram from this ecore file. How can I do. No way to
> found in the menus of the .ecore file or in the model directory how to
> do even with the new menu.
>


You have at least two solutions after opening the Modeling perspective:

1. Create a new Modeling Project, then move your ecore in it (if it is a
sample) or reference if from the project dependencies item. Then select
right clic the project and use the Viewpoint selection menu to select
the Design Viewpoint.

2. Right clic on your ecore file and select New > Representation file.
Then right clic the created aird file and use the Viewpoint selection
menu to activate the Design Viewpoint.

Then you should be able to create diagrams on your EPackages. (righ-clic
> New Representation > ..)


Kind regards,

Maxime
Re: ecore design [message #1389242 is a reply to message #1389241] Fri, 27 June 2014 14:33 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime Porhel
Messages: 100
Registered: July 2009
Senior Member
One forgotten question: did you install Ecore Tools 2 ? It provides the
Design Viewpoint I referenced in my previous message.

Le 27/06/2014 16:31, Maxime Porhel a écrit :
> Hi
>
> Le 27/06/2014 16:17, guillen antonio a écrit :
>> I have an ecore model with more than 20 packages. I have install Luna
>> 4.4, Sirius today.
>>
>> I want create a diagram from this ecore file. How can I do. No way to
>> found in the menus of the .ecore file or in the model directory how to
>> do even with the new menu.
>>
>
>
> You have at least two solutions after opening the Modeling perspective:
>
> 1. Create a new Modeling Project, then move your ecore in it (if it is a
> sample) or reference if from the project dependencies item. Then select
> right clic the project and use the Viewpoint selection menu to select
> the Design Viewpoint.
>
> 2. Right clic on your ecore file and select New > Representation file.
> Then right clic the created aird file and use the Viewpoint selection
> menu to activate the Design Viewpoint.
>
> Then you should be able to create diagrams on your EPackages. (righ-clic
> > New Representation > ..)
>
>
> Kind regards,
>
> Maxime
Re: ecore design [message #1389257 is a reply to message #1389242] Fri, 27 June 2014 14:51 Go to previous messageGo to next message
Cedric Brun is currently offline Cedric Brun
Messages: 372
Registered: July 2009
Senior Member
Please have a look on the documentation of EcoreTools :

https://www.eclipse.org/ecoretools/doc/index.html
Re: ecore design [message #1389259 is a reply to message #1389242] Fri, 27 June 2014 14:54 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime Porhel
Messages: 100
Registered: July 2009
Senior Member
I am sorry for the three answers (this following text was supposed to be
in the first answer).


Note that you should just have to convert your Plugin project into a
Modeling project, but as mentionned in by Pierre Charles, in the Sirius
1.0.0 release mail, there is a known issue around the detection of
semantic models:

> * #436375: Semantic models not automatically detected when converting
> into a Modeling Project. A workaround is to add them manually to the
> session using the Project Dependencies of the modeling project (see
> [2]).
....
> [2]
https://www.eclipse.org/sirius/doc/user/general/Modeling%20Project.html#ProjectDependencies



Regards


Maxime


Le 27/06/2014 16:33, Maxime Porhel a écrit :
> One forgotten question: did you install Ecore Tools 2 ? It provides the
> Design Viewpoint I referenced in my previous message.
>
> Le 27/06/2014 16:31, Maxime Porhel a écrit :
>> Hi
>>
>> Le 27/06/2014 16:17, guillen antonio a écrit :
>>> I have an ecore model with more than 20 packages. I have install Luna
>>> 4.4, Sirius today.
>>>
>>> I want create a diagram from this ecore file. How can I do. No way to
>>> found in the menus of the .ecore file or in the model directory how to
>>> do even with the new menu.
>>>
>>
>>
>> You have at least two solutions after opening the Modeling perspective:
>>
>> 1. Create a new Modeling Project, then move your ecore in it (if it is a
>> sample) or reference if from the project dependencies item. Then select
>> right clic the project and use the Viewpoint selection menu to select
>> the Design Viewpoint.
>>
>> 2. Right clic on your ecore file and select New > Representation file.
>> Then right clic the created aird file and use the Viewpoint selection
>> menu to activate the Design Viewpoint.
>>
>> Then you should be able to create diagrams on your EPackages. (righ-clic
>> > New Representation > ..)
>>
>>
>> Kind regards,
>>
>> Maxime
>
Re: ecore design [message #1389268 is a reply to message #1389259] Fri, 27 June 2014 15:07 Go to previous message
guillen antonio is currently offline guillen antonio
Messages: 6
Registered: July 2013
Junior Member
Thanks a lot, it works Razz . But now I have another problem. I have one diagram per package (fine). I want a diagram with all the packages with the links (association, ...) from one class of one package to another class from another package, and I can't build it from my ecore file. It's normal?
Previous Topic:Sirius in Eclipse 4 application
Next Topic:Dynamic creation of layers
Goto Forum:
  


Current Time: Sat Oct 25 03:43:55 GMT 2014

Powered by FUDForum. Page generated in 0.02402 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software