Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Generated Editor with CDOResource
[CDO] Generated Editor with CDOResource [message #931978] Wed, 03 October 2012 14:01 Go to next message
Karan Anand is currently offline Karan Anand
Messages: 8
Registered: June 2012
Junior Member
Hello Everyone,

We are trying to evaluate CDO for our application. We currently have an application which uses XMIResources, and we are running into scalability issues.

So far, we have been able to:
- Start a CDO server, using a basic configuration file
- Able to invoke multiple sessions connected to the server
- Load a CDOResource into the editor (no changes made to editor)

However, when we make any change to the model, it does not mark the editor as dirty. While debugging, we found that the editing domain associated with the resource was null. This might be because the notifier's eAdapters does not contain any TransactionChangeRecorder.

Here is what we do to setup the EditorInput:

CDOView view = myCDOSession.getTransaction();
String resourcePath = view.getRootResource().getPath();
resourcePath += "modelName.cdo";
CDOEditorInput editorInput = CDOEditorUtil.createCDOEditorInput(view, resourcePath, true);
activePage.openEditor(editorInput, editorID, true, MATCH_BOTH);


We took a look at the following bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=389173

Is this related to the problem we are facing? Or are missing some step in setting up the CDOResource?

We are using CDO v4.0.1

Thanks in advance for any help / pointers.

- Karan Anand
Re: [CDO] Generated Editor with CDOResource [message #932923 is a reply to message #931978] Thu, 04 October 2012 11:15 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5486
Registered: July 2009
Senior Member
Am 03.10.2012 20:01, schrieb Karan Anand:
> Hello Everyone,
>
> We are trying to evaluate CDO for our application. We currently have an application which uses XMIResources, and we
> are running into scalability issues.
> So far, we have been able to:
> - Start a CDO server, using a basic configuration file
> - Able to invoke multiple sessions connected to the server
> - Load a CDOResource into the editor (no changes made to editor)
What editor is that?

> However, when we make any change to the model, it does not mark the editor as dirty. While debugging, we found that
> the editing domain associated with the resource was null. This might be because the notifier's eAdapters does not
> contain any TransactionChangeRecorder.
Sorry, I don't know what all this means. How's a TransactionChangeRecorder related?

> Here is what we do to setup the EditorInput:
>
>
> CDOView view = myCDOSession.getTransaction();
> String resourcePath = view.getRootResource().getPath();
> resourcePath += "modelName.cdo";
> CDOEditorInput editorInput = CDOEditorUtil.createCDOEditorInput(view, resourcePath, true);
> activePage.openEditor(editorInput, editorID, true, MATCH_BOTH);
This editor, does it recognize a CDOEditorInput? What does it do with it?

> We took a look at the following bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=389173
>
> Is this related to the problem we are facing?
Impossible for me to tell. I haven't found the time to investigate that issue, yet ;-(

> Or are missing some step in setting up the CDOResource?
Probably more an issue in your editor. Have you already compared to CDOEditor.java ?

> We are using CDO v4.0.1
Please note that CDO 4.0 is out of maintenance. You should upgrade at least to 4.1 to expect support here. We have too
little resources to maintain more than one stream of releases.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO] Generated Editor with CDOResource [message #933268 is a reply to message #932923] Thu, 04 October 2012 18:25 Go to previous message
Karan Anand is currently offline Karan Anand
Messages: 8
Registered: June 2012
Junior Member
Hi Eike,

Thanks for your reply.

We shall update to 4.1 and let you know how it goes.

Thanks again.

- Karan Anand
Previous Topic:[CDO] Ecore switch to not generate base class tables?
Next Topic:EMF Ecore - EOpposite relation to self
Goto Forum:
  


Current Time: Tue Jul 29 16:54:54 EDT 2014

Powered by FUDForum. Page generated in 0.03580 seconds