Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Connecting to CDO repository
Connecting to CDO repository [message #1274544] Fri, 21 March 2014 16:10 Go to next message
Florian Dunz is currently offline Florian DunzFriend
Messages: 20
Registered: March 2014
Junior Member
Hey,

I've been playing around with Sirius for the last 2 weeks at work. As I've gotten pretty much the hang of it now I'd like to know how to connect to a CDO repository.

I'm able to load the resource in the "Basicfamily" Model Editor though I've yet to find a way for actually creating a representation for it. The editor also seems to not even care when I'm loading the resource, after closing and reopening the editor the just added resource is gone. I've found multiple bits of code where CDO is referenced inside the sirius source which let's me thinking that there should be a way.

I'd greatly appreciate if you could help me on how to connect and create representations for a CDO repo.

Thanks,
Florian Smile

Edit (25.03.2014): Maybe I should clarify my question. How do I create representations for a model which is saved on a CDO repository. Can I save the corresponding .aird files on CDO aswell, what about the .odesign? How do I tell Sirius where those files are located?

[Updated on: Tue, 25 March 2014 07:18]

Report message to a moderator

Re: Connecting to CDO repository [message #1277635 is a reply to message #1274544] Wed, 26 March 2014 09:03 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Le 21/03/2014 17:17, Florian Dunz a écrit :
> Hey,

Hi.

> I've been playing around with Sirius for the last 2 weeks at work. As
> I've gotten pretty much the hang of it now I'd like to know how to
> connect to a CDO repository.

This is not supported out-of-the-box by Sirius itself.

The integration between Sirius and CDO comes with Obeo Designer, a
commercial offer provided by Obeo. Based on an annual subscription, it
includes real-time collaborative edition on all types of Sirius
representations.

The current version of Obeo Designer (6.2) is based on a version of
Sirius before it was an Open Source project at Eclipse. But the next
major version of Obeo Designer (7.0) will be based on Sirius. You can
get more information, including an evaluation version (with no feature
restrictions) at http://www.obeodesigner.com/.

Disclaimer: I am an Obeo employee and part of the Obeo Designer team.

> I'm able to load the resource in the "Basicfamily" Model Editor though
> I've yet to find a way for actually creating a representation for it.
> The editor also seems to not even care when I'm loading the resource,
> after closing and reopening the editor the just added resource is gone.
> I've found multiple bits of code where CDO is referenced inside the
> sirius source which let's me thinking that there should be a way.

These references are only in comments, and maybe some error messages;
they do not make Sirius itself depend on CDO. We will remove them at
some point (with no loss of functionality, just more general code and
messages wording).

Regards,
Pierre-Charles David


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Connecting to CDO repository [message #1277665 is a reply to message #1277635] Wed, 26 March 2014 09:43 Go to previous message
Florian Dunz is currently offline Florian DunzFriend
Messages: 20
Registered: March 2014
Junior Member
Thanks for the reply!

I've been playing around a little more and was able to connect to the cdo repo and display the model stored on it.
I've achieved this by modifing the .aird file. Replacing all href="..." which pointed to the locally stored model with something like: href="cdo.net4j.tcp://username:password@localhost:2036/cdo_repo/cdo.library"
After closing and reopening the project which hold the .aird file I can open the diagram. It'll display the cdo.library model stored on cdo.

But quite a lot problems come along with this:
-Sirius changes the href by itself to a canonical one which makes it something like: href="cdo://a4cd80a2-56ed-46c0-b988-8671b80be088/cdo.library" For some reason after restarting eclipse the diagram gets corrupted and the message: "Impossible to find an interpreter - Could not find a session for model element" is displayed along with runtimeexceptions. I'm not sure what to do about this.

  • Edit(27.03.2014): Ok, I've understood now why and where the URI is being changed into a canonical one. Is there a way to tell Sirius not to save the canonical one but the URI I acutally gave him in the first place? Where's the input of the .aird file made?

-The diagram doesn't notice updates on the cdo server but the properties view does. A manual view refresh fixes this though I'm not sure where I should implement this to be done automatically.
-Creating a new child on the cdo server causes the whole ide which displays the diagram to crash.

Are there possibilities for me to fix this in an reasonable fashion? Any hint would be appreciated. Smile

Thanks,
Florian

[Updated on: Thu, 27 March 2014 14:01]

Report message to a moderator

Previous Topic:Adding inscriptions to edges and using .svg for Node images
Next Topic:Multiple model files?
Goto Forum:
  


Current Time: Fri Apr 19 00:14:55 GMT 2024

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

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

Back to the top