[isidorus-cvs] r1005 - trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Tue Oct 18 10:19:08 UTC 2011
Author: lgiessmann
Date: Tue Oct 18 03:19:08 2011
New Revision: 1005
Log:
gdl-frontend: Widgets: implemented the item-identifier-constraints for associations and association roles
Modified:
trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java
Modified: trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java
==============================================================================
--- trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java Tue Oct 18 03:17:10 2011 (r1004)
+++ trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java Tue Oct 18 03:19:08 2011 (r1005)
@@ -1936,6 +1936,9 @@
JsArray<Occurrence> occs = ((Topic)this.receivedData).getOccurrences(constrainedTopicType);
if(occs.length() != 0) ref = occs.get(0);
}
+ } else if(this.receivedData instanceof Association){
+ JsArray<Role> roles = ((Association)this.receivedData).getRoles(constrainedTopicType);
+ if(roles.length() != 0) ref = roles.get(0);
}
// search for item-identifiers of the found topic type or characteristics
More information about the Isidorus-cvs
mailing list