cp-api / cp-lib4

0 stars 0 forks source link

CapellaWorkspaceProvider should provide API to test if an EditingDomain is the WorkspaceDomain #9

Closed eclipse-capella-bot closed 3 years ago

eclipse-capella-bot commented 3 years ago

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

eclipse-capella-bot commented 3 years ago

ci-bot commented on 2015-11-19

Merged to [master]. Commit: 1b0f2db51500daa0722a6af7be16ba4268af4891

felix.dorner commented on 2015-11-19

Fixed in master