Skip to main content



      Home
Home » Eclipse Projects » Sirius » Creating the instance of the dropped object in the new file (Creating the instance of the dropped object in the new file )
Creating the instance of the dropped object in the new file [message #1734406] Wed, 08 June 2016 01:30 Go to next message
Eclipse UserFriend
Hi,
When i create the object(Man object) in the diagram editor it is updated in the model file(for ex.. in example.basicfamily model) in the explorer.So i have another xml file in the model explorer of sirius so as i create a instance in the sirius diagram editor can i even create the instance in the new xml file along with the model file in the explorer.
Re: Creating the instance of the dropped object in the new file [message #1735106 is a reply to message #1734406] Wed, 15 June 2016 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

If you have two different basicfamily model in a modeling project, by
default you need two different diagrams to add elements in each model.
You can add some custom code like a ModelChangeTrigger to replicate the
creation in one model to another one, but I am not sure why you would
need to duplicate your models.

Regards,
Steve

Le 08/06/2016 à 07:30, naveen ramesh a écrit :
> Hi,
> When i create the object(Man object) in the diagram editor it is updated
> in the model file(for ex.. in example.basicfamily model) in the
> explorer.So i have another xml file in the model explorer of sirius so
> as i create a instance in the sirius diagram editor can i even create
> the instance in the new xml file along with the model file in the explorer.


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Creating the instance of the dropped object in the new file [message #1735687 is a reply to message #1735106] Tue, 21 June 2016 23:51 Go to previous messageGo to next message
Eclipse UserFriend
Instead of duplicating the models how can we add the model objects into the xml file
Re: Creating the instance of the dropped object in the new file [message #1735715 is a reply to message #1735687] Wed, 22 June 2016 04:30 Go to previous messageGo to next message
Eclipse UserFriend
I do not understand what you mean, as the model objects are serialized
into xml files (example.bascifamily is an xml/xmi file).

Le 22/06/2016 à 05:51, naveen ramesh a écrit :
> Instead of duplicating the models how can we add the model objects into
> the xml file


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Creating the instance of the dropped object in the new file [message #1735734 is a reply to message #1735715] Wed, 22 June 2016 06:47 Go to previous message
Eclipse UserFriend
yes i knew that example.basicfamily is an xml file and the objects are serialized into xml files using the predefined structure but i want to serialize the model objects using user defined structure i.e i have my own structure to serialize the model objects in the xml file .

[Updated on: Wed, 22 June 2016 06:48] by Moderator

Previous Topic:Compartments Tutorial
Next Topic:Adding a new edge in a diagram extension
Goto Forum:
  


Current Time: Wed Mar 26 08:23:45 EDT 2025

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

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

Back to the top