Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How can i select releated nodes when a node selected on Diagram?
How can i select releated nodes when a node selected on Diagram? [message #1224736] Fri, 27 December 2013 16:52
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
Hi all,

I want to ask;

How can i select releated nodes when a node selected on Diagram ?

Sample;

i have metamodel as;


class Association extends EntityNamedElement {
  ref Entity[1] sourceEntity;
  ref Entity[1] targetEntity;
  ref NavigationProperty sourceNavigation;
  ref NavigationProperty targetNavigation;
  attr String[1] sourceMultiplicity;
  attr DeleteAction sourceOnDelete;
  attr String[1] targetMultiplicity;
  attr DeleteAction targetOnDelete;
  attr String[1] associationSetName;
}

class Entity extends EntityNamedElement, ContentTableEntity {
  attr boolean ~abstract;
  attr EntityAccess access;
  attr String[1] entitySetName;

  ref Entity baseType;

  @gmf.compartment(layout="list", collapsible="true")
  val SingleProperty[*] singleProperties;

  @gmf.compartment(layout="list", collapsible="true")
  val NavigationProperty[*] navigationProperties;
}

@gmf.node(label="displayName", figure="rounded", label.icon="true", border.color="0,0,0")
class NavigationProperty extends Property {
  ref Association[1] relation;
}



i just want to when association selected on diagram i want to add border to source and target Navigation property figure and when leaving from association (deselecting state) i want to remove this borders

So anyone can help me ?

Regards

[Updated on: Fri, 27 December 2013 23:43]

Report message to a moderator

Previous Topic:Add link first without links
Next Topic:How can I use created editor by GMF in my java application
Goto Forum:
  


Current Time: Fri Apr 19 23:49:28 GMT 2024

Powered by FUDForum. Page generated in 0.03785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top