I would like to iterate over all EditingDomains via ExecutionManagerRegistry.getInstance().getAllEditingDomains(). Now this includes the editing domain created in the CapellaWorkspaceProvider class which I am not interested in.
I've seen that this domain has a special ID, so I would just check the ID to skip over it, but it would be good to have an API available for this check:
if (CapellaWorkspaceProvider.isWorkspaceEditingDomain(myDomain)){
} else {
}
But still, this is cumbersome.. I would have thought that the EditingDomains returned by ExecutionManagerRegistry would correspond to the opened capella projects in the workspace, not some temporary helper domain. Couldn't you just create the domain without registering it with the global registry?
I would like to iterate over all EditingDomains via ExecutionManagerRegistry.getInstance().getAllEditingDomains(). Now this includes the editing domain created in the CapellaWorkspaceProvider class which I am not interested in.
I've seen that this domain has a special ID, so I would just check the ID to skip over it, but it would be good to have an API available for this check:
if (CapellaWorkspaceProvider.isWorkspaceEditingDomain(myDomain)){
} else {
}
But still, this is cumbersome.. I would have thought that the EditingDomains returned by ExecutionManagerRegistry would correspond to the opened capella projects in the workspace, not some temporary helper domain. Couldn't you just create the domain without registering it with the global registry?
🆔 ECLIPSE-555035 / POLARSYS-637
👷 felix.dorner
📅 2015-11-17
🔎 1.0.0