Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Editing a cdo model on a client programmatically
Editing a cdo model on a client programmatically [message #1694791] Thu, 07 May 2015 21:54 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
I want to be able to modify the cdo model, which is active on the repository programmatically.

I am quite sure that this wont mess up standard CDO things.

Because, I am using CDO only for communication between the clients.
In other words, I have my own custom ChangeSet sender and receiver.

Currently whatever change made to the model outside the editor (i mean editing the text in the file manually) does not affect the model at all.




/Uma

Re: Editing a cdo model on a client programmatically [message #1694803 is a reply to message #1694791] Fri, 08 May 2015 04:04 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 07.05.2015 um 23:54 schrieb UmaShankar Subramani:
> I want to be able to modify the cdo model, which is active on the repository programmatically.
>
> I am quite sure that this wont mess up standard CDO things.
> Because, I am using CDO only for communication between the clients. In other words, I have my own custom ChangeSet
> sender and receiver.
>
> Currently whatever change made to the model outside the editor (i mean editing the text in the file manually) does not
> affect the model at all.
What file are you talking about?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Editing a cdo model on a client programmatically [message #1694804 is a reply to message #1694803] Fri, 08 May 2015 04:36 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi,

I am talking about the model file itself.

When I make a commit from one client, I want to apply the changes to all the other clients programmatically .



/Uma
Re: Editing a cdo model on a client programmatically [message #1694813 is a reply to message #1694804] Fri, 08 May 2015 07:43 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 08.05.2015 um 06:36 schrieb UmaShankar Subramani:
> Hi,
>
> I am talking about the model file itself.
>
> When I make a commit from one client, I want to apply the changes to all the other clients programmatically .
Sorry, I'm don't know what you're talking about. It's CDO's task to apply changes to other clients. Where youwant to
modify the model you must open a CDOTransaction, load the model through it, modify the model and commit the transaction.
That's all.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:XMI Cross Document Reference with ID only
Next Topic:How to serialize ecore objects to an xml file
Goto Forum:
  


Current Time: Thu Apr 25 11:50:37 GMT 2024

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

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

Back to the top