[Mobies-commit] [commit] r4204 - GReAT/trunk/Tools/MetaGME2UMX

ksmyth at redhat3.isis.vanderbilt.edu ksmyth at redhat3.isis.vanderbilt.edu
Mon Nov 18 16:21:57 CST 2013


Author: ksmyth
Date: Mon Nov 18 16:21:57 2013
New Revision: 4204

Log:
MetaGME2UML: create links to add in refport preferences (META-2172)

Modified:
   GReAT/trunk/Tools/MetaGME2UMX/MetaGME2UML_2.cpp

Modified: GReAT/trunk/Tools/MetaGME2UMX/MetaGME2UML_2.cpp
==============================================================================
--- GReAT/trunk/Tools/MetaGME2UMX/MetaGME2UML_2.cpp	Tue Nov 12 16:37:06 2013	(r4203)
+++ GReAT/trunk/Tools/MetaGME2UMX/MetaGME2UML_2.cpp	Mon Nov 18 16:21:57 2013	(r4204)
@@ -1066,8 +1066,16 @@
 	if (refport_containers.size() != 1)
 		msg += "s";
 	msg += " ";
-	msg += refport_container_names;
-	msg += ". Add \"" + s_or_d + "RefParent=" + assoc_rolename + "_refport_parent\" to the General Preferences attribute to generate refport container associations.";
+	msg += refport_container_names + ". ";
+	std::string gme_id = UdmGme::UdmId2GmeId(connection.uniqueId());
+	msg += "<a href=\"javascript:"
+		"gme.MgaProject.BeginTransactionInNewTerr(); "
+		"conn = gme.MgaProject.GetObjectByID('" + gme_id + "');"
+		"conn.SetAttributeByNameDisp('GeneralPreferences', conn.GetAttributeByNameDisp('GeneralPreferences') + '\\n' + '" + s_or_d + "RefParent=" + assoc_rolename + "_refport_parent');"
+		"gme.MgaProject.CommitTransaction();"
+		"gme.ShowFCO(conn, true);\">";
+	msg += "Add \"" + s_or_d + "RefParent=" + assoc_rolename + "_refport_parent\" to the General Preferences attribute to generate refport container associations.";
+	msg += "</a>";
 	ConsoleMessage(msg);
 }
 


More information about the Mobies-commit mailing list