|
|
|
|
Re: Handling business objects shared among different diagrams [message #911761 is a reply to message #911166] |
Wed, 12 September 2012 05:17  |
Eclipse User |
|
|
|
Hello Michael,
Quote:there's a method createEditingDomain() inside DefaultUpdateBehavior that you
can override to create your own editing domain/resource set combination.
Thanks!
I was looking at ResourceSetImpl and i found this:
/**
* Returns a resolved resource available outside of the resource set.
* It is called by {@link #getResource(URI, boolean) getResource(URI, boolean)}
* after it has determined that the URI cannot be resolved
* based on the existing contents of the resource set.
* This implementation looks up the URI in the {#getPackageRegistry() local} package registry.
* Clients may extend this as appropriate.
* @param uri the URI
* @param loadOnDemand whether demand loading is required.
*/
protected Resource delegatedGetResource(URI uri, boolean loadOnDemand)
Following my first post questions, I was thinking about extending ResourceSetImpl and use some kind of global resource registry so that when a shared object, outside of the resource set was need, this shared object resource would be returned here.
I still don´t know if it will work, but i guess i can give it a try.
Thanks,
João
|
|
|
Powered by
FUDForum. Page generated in 0.26337 seconds