| Reuse of models [message #1722445] |
Thu, 04 February 2016 16:06  |
Eclipse User |
|
|
|
I'm new in Sirius and am developing a modeling framework for a DSL. In this project, the users can develop the models and share it with other users, like libraries. For example, a user (A) creates a model with some data types (datatype.xml). The user (B) creates a model (myproject.xml) and would like to reuse the elements of the datatype.xml to define other elements of his project.
For example, in the Sirius, when you put a Diagram Description element is possible to select other metamodels (properties tab), and I'd like to do this in my project.
So, how can I do the user (B) reuse another models or metamodels into creating the new model using my framework?
Best regards,
|
|
|
|
|
|
| Re: Reuse of models [message #1726768 is a reply to message #1726690] |
Wed, 16 March 2016 06:50   |
Eclipse User |
|
|
|
Hi Marcelo,
If you have datatypes displayed when adding your datatypes model to the
Modeling Project, it could means that you have not defined semantic
candidates expression in mapping of your odesign. Then to not display
datatypes you should restrict the instances returned by your semantic
candidates expression, because when this expression is empty by default
all instances of domainClass existing your semantic resources of your
Sirius session will be returned.
Best Regards.
Le 15/03/2016 20:17, Marcelo Alves a écrit :
> Hi Maxime,
>
> I'm back with the framework development. I saw your recommendation, but I didn't get a good result.
>
> For example:
>
> A started a new model (model1-datatype.png) where was modelled some datatypes for reused in other models.
>
>
>
> Also, I created another model (model1-serviceType.png) where it was modelled a type that represents a Rest Service.
>
>
>
> I created a new information model (model1-information.png) where I wanted to use those elements. I've inserted those models as dependencies, but those elements are shown immediately without I select them.
>
>
>
> My doubts:
>
> How can I use those elements into new models without show them immediately?
>
> How can I select the created elements for insert into the new model?
>
> Cheers,
>
> Marcelo
>
--
Esteban Dugueperoux - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06138 seconds