You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say that I have some extra data that I want to display in my custom GNodeSkin. From what I understand of the wiki page, this would be done by creating a new EMF model, and then creating a new EClass with the extra attributes needed. Whenever a new node of that extended type is needed, both a GNode and a MyExtendedGNode are instantiated, with the same ID, and both are added to the GModel.
But then how does the custom GNodeSkin get access to the MyExtendedGNode instance? Do I use the GNode to look up the MyExtendedGNode instance? Where do I do this? Do I do this in the skin factory? Is there a function I can call such as getMyExtendedGNodeById(String id), or do I manually keep a Map<String, MyExtendedGNode> that acts as an index for the extra attributes? I'm confused. What is the recommended approach? (Or am I going about this entirely the wrong way?)
The text was updated successfully, but these errors were encountered:
Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.85. Please mark this comment with 👍 or 👎 to give our bot feedback!
Lets say that I have some extra data that I want to display in my custom
GNodeSkin
. From what I understand of the wiki page, this would be done by creating a new EMF model, and then creating a newEClass
with the extra attributes needed. Whenever a new node of that extended type is needed, both aGNode
and aMyExtendedGNode
are instantiated, with the same ID, and both are added to theGModel
.But then how does the custom
GNodeSkin
get access to theMyExtendedGNode
instance? Do I use theGNode
to look up theMyExtendedGNode
instance? Where do I do this? Do I do this in the skin factory? Is there a function I can call such asgetMyExtendedGNodeById(String id)
, or do I manually keep aMap<String, MyExtendedGNode>
that acts as an index for the extra attributes? I'm confused. What is the recommended approach? (Or am I going about this entirely the wrong way?)The text was updated successfully, but these errors were encountered: