[EMF Store Client] Configuration [message #729951] |
Tue, 27 September 2011 06:55  |
Eclipse User |
|
|
|
Hello (to delevopers of the emf store / emf cp),
I had severals problems commiting to the repository (EMF Store). Every time I got an Expection "...resource splitting...".
Well, looking at the extensions points of the emf store client, i discovered org.eclipse.emf.emfstore.client.persistence.options wich has a boolean flag to enable or disable this option.
Because changing this to false, couldn't solve the problem, I looked into the source code of the org.eclipse.emf.emfstore.client.model.Configuration and found the problem.
The static method isResourceSplittingEnabled allways return true!!!
Here the code:
public static boolean isResourceSplittingEnabled() {
if (resourceSplitting != null) {
return true;
}
resourceSplitting = new Boolean(false);
IConfigurationElement[] rawExtensions = Platform.getExtensionRegistry()
.getConfigurationElementsFor(
"org.eclipse.emf.emfstore.client.persistence.options");
for (IConfigurationElement extension : rawExtensions) {
resourceSplitting = new Boolean(extension.getAttribute("enabled"));
}
return true;
}
... and there is no comment, no todo, no nothing.
In short terms, when the option resource splliting is disabled, everything works in my case. Commit & Update to the Store.
Please take it as a hint and fix it soon. Beside this, I would like to understand what this option affect.
best regards,
christian
|
|
|
Re: [EMF Store Client] Configuration [message #731229 is a reply to message #729951] |
Fri, 30 September 2011 06:04  |
Eclipse User |
|
|
|
Hi Christian,
thank you for this detailed report!
The problem you are facing with resource splitting enabled is probably
due to missing containment proxies. Did you enable containment proxies
for your model? (You can do this in the genmodel with the property
containmentProxies.)
The bug for the disablement flag will be fixed today, thanks for
pointing it out. We are currently moving the maintenance branch of
EMFStore to the GIT repository. Currently it is still available at:
http://unicase.googlecode.com/svn/branches/EMFStoreECP_0.8.x_maintenance/emfstore
It contains all bug fixes for the current milestone builds. Not all of
them have already been ported to the current master branch in GIT, so
you might consider using this branch for the time being.
Sorry for any inconvenience!
Cheers,
Maximilian
Am 27.09.2011 12:55, schrieb butch.piranda:
> Hello (to delevopers of the emf store / emf cp),
>
> I had severals problems commiting to the repository (EMF Store). Every
> time I got an Expection "...resource splitting...". Well, looking at the
> extensions points of the emf store client, i discovered
> org.eclipse.emf.emfstore.client.persistence.options wich has a boolean
> flag to enable or disable this option.
>
> Because changing this to false, couldn't solve the problem, I looked
> into the source code of the
> org.eclipse.emf.emfstore.client.model.Configuration and found the problem.
> The static method isResourceSplittingEnabled allways return true!!!
> Here the code:
>
> public static boolean isResourceSplittingEnabled() {
>
> if (resourceSplitting != null) {
> return true;
> }
> resourceSplitting = new Boolean(false);
> IConfigurationElement[] rawExtensions = Platform.getExtensionRegistry()
> .getConfigurationElementsFor(
> "org.eclipse.emf.emfstore.client.persistence.options");
> for (IConfigurationElement extension : rawExtensions) {
> resourceSplitting = new Boolean(extension.getAttribute("enabled"));
> }
> return true;
> }
>
> .. and there is no comment, no todo, no nothing.
>
> In short terms, when the option resource splliting is disabled,
> everything works in my case. Commit & Update to the Store.
>
> Please take it as a hint and fix it soon. Beside this, I would like to
> understand what this option affect.
>
> best regards,
> christian
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04426 seconds