use of org.yakindu.sct.model.sgraph.SpecificationElement in project statecharts by Yakindu.
the class AbstractSCTResource method detachedHelper.
@Override
protected void detachedHelper(EObject eObject) {
if (eObject instanceof SpecificationElement) {
Adapter parseAdapter = EcoreUtil.getExistingAdapter(eObject, ParseAdapter.class);
if (parseAdapter != null) {
eObject.eAdapters().remove(parseAdapter);
}
Adapter serializeAdapter = EcoreUtil.getExistingAdapter(eObject, SerializeAdapter.class);
if (serializeAdapter != null) {
eObject.eAdapters().remove(serializeAdapter);
}
}
super.detachedHelper(eObject);
}
Aggregations