Add creation of getter/setter functionality for associations
TouchRAM is able to create getters and setters for attributes. This functionality could also be added to association ends.
For example, the user tap-and-holds on the role name of an end and gets presented the choice to create a getter and/or setter for this end. Since both Attribute
and AssociationEnd
are a StructuralFeature
this should be easy to implement by adjusting the current functionality. StructuralFeature.getType()
returns the type. The only twist could be the multiplicity, where it depends for association ends.
Comments (11)
-
reporter -
Yes sir. Will do.
-
reporter - changed milestone to AOSD 2014 Demo
-
-
assigned issue to
-
assigned issue to
-
References issue
#45: Added TapAndHold event on AssociationRoleName TextView. It works for multiplicity of 1 (not array type yet).→ <<cset a79ea69dbcd8>>
-
References issue
#45: Added ArrayType when the multiplicity is upper than 1.→ <<cset 8604bd340f2a>>
-
I merged this issue into the
#151branch to use it. Make sure to merge new modifications before working on this issue. -
reporter I think to resolve this issue here the following change is necessary: Instead of ArrayType for multiplicity > 1 it should probably use a sequence or set from our metamodel ... or ask the user what to use maybe? Because the user could also want to use an implementation class.
-
I rebased the
#45branch to the current master to avoid resolving some annoying conflicts again. -
References issue
#45: Changed generated get/set types from RArray to RSequence→ <<cset 2bfc57d428a4>>
-
reporter - changed status to resolved
Resolved for now. The remaining issue is a core issue: What type to use for multiplicity of many? This might depend on what the intention with it is and/or on the specific multiplicity.
- Log in to comment
@jmiller57 could you potentially look into this after completing your current task?