|
|
Re: [CDO] How to construct connection aware URIs [message #952886 is a reply to message #952848] |
Sun, 21 October 2012 17:43  |
Eclipse User |
|
|
|
Hi Eike,
thanks for your fast reply, that does the trick.
The reason I want to do this is because I have a registry for instances of my model, similar to EMFs package registry. The resource URIs containing the registered objects are stored in a properties file that is read when the plugin starts, but at this point in time, the sessions are not opened yet. They are manually created by the user via the CDO Sessions view. Putting connection-aware URIs in the properties file should solve that problem.
The objects are registered from an editor that is opened through the sessions view, i.e. the code that does the registration did not create the session and thus doesn't know the connection details. But with the line of code you provided, it can determine it.
Thank you very much!
Regards,
Tim
|
|
|
Powered by
FUDForum. Page generated in 0.26902 seconds