Closed abelhegedus closed 11 years ago
@szabta89 please take a look at this issue.
@abelhegedus Can you give me some hints on how to extract the domain model from a papyrus editor? I googled it a lot but did not find any proper solution, as it seems the EditingDomain's ResourceSet also contains GMF elements.
EditingDomain's ResourceSet also contains GMF elements Isn't that always the case with GMF editors?
Anyways, we can always extract the whole ResourceSet, right? So the real question is the resource-scoped loading. I think if we, at long last, still cannot find a reliable way to determine which resource corresponds to the domain model, then it would be acceptable to omit this scope limitation functionality in case of Papyrus.
Then again, isn't there a generic GMF solution for finding the domain model? Or if all else fails, can we not make a good Papyrus-specific guess based on the resource URI, e.g. find the one that ends in .uml or something similar?
As I was thinking about using UML models as example, I looked into this issue, and found, that the Papyrus editor uses the IDiagramWorkbenchPart interface for its multipage editor.
I updated the code and it seems working for me.
I installed the latest Papyrus and have tried to load a model from their "PapyrusMultiDiagramEditor" but it seems that neither of our handlers match it.