public boolean delete() { boolean result = super.delete(); boolean delete_error = false; String errorMsg = "The following relationships were not torn down by the Assign to Member.dispose call: "; Value_c testR609Inst = Value_c.getOneV_VALOnR609(this, false); if (testR609Inst != null) { delete_error = true; errorMsg = errorMsg + "609 "; } Value_c testR689Inst = Value_c.getOneV_VALOnR689(this, false); if (testR689Inst != null) { delete_error = true; errorMsg = errorMsg + "689 "; } Statement_c testR603Inst11 = Statement_c.getOneACT_SMTOnR603(this, false); if (testR603Inst11 != null) { delete_error = true; errorMsg = errorMsg + "603 "; } if (delete_error == true) { if (CorePlugin.getDefault().isDebugging()) { Ooaofooa.log.println(ILogger.DELETE, "Assign to Member", errorMsg); } else { Exception e = new Exception(); e.fillInStackTrace(); CorePlugin.logError(errorMsg, e); } } return result; }
// declare transform functions public void Dispose() { Ooaofooa.log.println( ILogger.OPERATION, "Assign to Member", " Operation entered: AssignToMember::Dispose"); final ModelRoot modelRoot = getModelRoot(); Value_c v_value = Value_c.getOneV_VALOnR609(this); if (((v_value != null))) { this.unrelateAcrossR609From(v_value); if (v_value != null) { v_value.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } v_value = Value_c.getOneV_VALOnR689(this); if (((v_value != null))) { this.unrelateAcrossR689From(v_value); if (v_value != null) { v_value.Dispose(); } else { Throwable t = new Throwable(); t.fillInStackTrace(); CorePlugin.logError("Attempted to call an operation on a null instance.", t); } } delete(); } // End dispose