labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
52 stars 10 forks source link

Replace EClass instance checking by name with the EMF EClass.isInstance() API. #175

Closed ylussaud closed 1 week ago

ylussaud commented 1 year ago

For instance:

extension.eClass().getName() == "CapellaOutgoingRelation" and extension.eClass().getEPackage().getNsURI().startswith("http://www.polarsys.org/capella/requirements")
get_e_classifier("http://www.polarsys.org/capella/requirements", "CapellaOutgoingRelation").isInstance(extension.eClass())