[GME-commit]
GMESRC/GME/ConstraintManager GMEViolationDialog.cpp,1.17,1.18
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Fri Jun 17 05:04:19 CDT 2005
- Previous message: [GME-commit]
GMESRC/GME/Gme GME.rc,1.139,1.140 GMEView.cpp,1.165,1.166
GMEView.h,1.67,1.68 resource.h,1.64,1.65
- Next message: [GME-commit] GMESRC/GME/Interfaces InterfaceVersion.h,1.59,1.60
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /project/gme-repository/GMESRC/GME/ConstraintManager
In directory escher:/tmp/cvs-serv6562
Modified Files:
GMEViolationDialog.cpp
Log Message:
Catching the exception in case of project attached constraints.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: GMEViolationDialog.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/ConstraintManager/GMEViolationDialog.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** GMEViolationDialog.cpp 12 Nov 2004 15:09:12 -0000 1.17
--- GMEViolationDialog.cpp 17 Jun 2005 04:04:17 -0000 1.18
***************
*** 433,448 ****
CComPtr<IUnknown> logfco = vi.vecObjectsPtr[0]; // self needed
CComPtr<IMgaFCO> fco;
! COMTHROW(logfco.QueryInterface(&fco));
!
! CComBSTR bstr, id, nm;
! COMTHROW( fco->get_ID( &id));
! COMTHROW( fco->get_Name( &nm));
! bstr.Append("Constraint Violation: <A HREF=\"mga:");
! bstr.AppendBSTR( id);
! bstr.Append("\">");
! bstr.AppendBSTR( nm);
! bstr.Append("</A>: ");
! bstr.Append(item.spConstraint.Ptr()->GetMessage().c_str());
! COMTHROW(m_oleapp->ConsoleMessage(bstr, MSG_ERROR));
}
catch(hresult_exception &)
--- 433,460 ----
CComPtr<IUnknown> logfco = vi.vecObjectsPtr[0]; // self needed
CComPtr<IMgaFCO> fco;
! COMTRY
! {
! COMTHROW(logfco.QueryInterface(&fco));
! CComBSTR bstr, id, nm;
! COMTHROW( fco->get_ID( &id));
! COMTHROW( fco->get_Name( &nm));
! bstr.Append("Constraint Violation: <A HREF=\"mga:");
! bstr.AppendBSTR( id);
! bstr.Append("\">");
! bstr.AppendBSTR( nm);
! bstr.Append("</A>: ");
! bstr.Append(item.spConstraint.Ptr()->GetMessage().c_str());
! COMTHROW(m_oleapp->ConsoleMessage(bstr, MSG_ERROR));
! }
! catch(hresult_exception &)// in case the constraint is not attached to any fco in the metamodel
! { // the constraint becomes project scoped, thus QueryInterface fails
! CComBSTR bstr;
! bstr.Append("Constraint ");
! bstr.Append(item.spConstraint.Ptr()->GetFullName().c_str());
! bstr.Append(" Violated! Description: \"");
! bstr.Append(item.spConstraint.Ptr()->GetMessage().c_str());
! bstr.Append("\".");
! COMTHROW(m_oleapp->ConsoleMessage(bstr, MSG_ERROR));
! }
}
catch(hresult_exception &)
- Previous message: [GME-commit]
GMESRC/GME/Gme GME.rc,1.139,1.140 GMEView.cpp,1.165,1.166
GMEView.h,1.67,1.68 resource.h,1.64,1.65
- Next message: [GME-commit] GMESRC/GME/Interfaces InterfaceVersion.h,1.59,1.60
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list