[isidorus-cvs] r822 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Fri Sep 2 10:58:05 UTC 2011


Author: lgiessmann
Date: Fri Sep  2 03:58:05 2011
New Revision: 822

Log:
gdl-frontend: Widgets: fixed a bug when validating gdlt:Role-Player insance of existing and changed roles

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Fri Sep  2 03:54:41 2011	(r821)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Fri Sep  2 03:58:05 2011	(r822)
@@ -2335,13 +2335,13 @@
 				} else if(TmHelper.isInstanceOf(this.getConstraint(), PSIs.TMCL.tmclItemIdentifierConstraint)){
 					// TODO: implement
 				} else if(TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlRolePlayer)){
+					Topic player = TmHelper.getTopicFromStringRepresentation(this.getSelectedValues().get(idx), this.getValueGroup());
+					if(validate) this.validateTmValue(player);
 					if(roles.size() > idx){
-						Topic player = TmHelper.getTopicFromStringRepresentation(this.getSelectedValues().get(idx), this.getValueGroup());
-						if(validate) this.validateTmValue(player);
 						changedRole = roles.get(idx);
 						changedRole.setPlayer(player);
 					} else {
-						changedRole = ((Association)localCarrier).createRole(roleType, TmHelper.getTopicFromStringRepresentation(this.getSelectedValues().get(idx), this.getValueGroup()));
+						changedRole = ((Association)localCarrier).createRole(roleType, player);
 					}
 				} else if(TmHelper.isInstanceOf(this.getConstraint(), PSIs.GDL.TopicType.gdlType)){
 					// TODO: implement




More information about the Isidorus-cvs mailing list