[CDO] Generated Editor with CDOResource [message #931978] |
Wed, 03 October 2012 18:01 |
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 15:15 |
|
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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03522 seconds