Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to identify any Particular Component from GMF Editor
How to identify any Particular Component from GMF Editor [message #696157] Wed, 13 July 2011 11:49 Go to next message
bunta Choudhary is currently offline bunta Choudhary
Messages: 39
Registered: December 2010
Member
We have a component named Button.
Now when we drop the button component twice over GMF Editor, both looks same and class/instances are same.
Now how can I identify the difference between the both component through program in editor.
Well during dropping , is some ID getting generated for each particular instance of component.
Re: How to identify any Particular Component from GMF Editor [message #701179 is a reply to message #696157] Sun, 24 July 2011 19:12 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 574
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm not sure to understand your issue very well and what you want to know but here some hints:
- internally, there is an xmi:id different for both of us (this is managed by EMF)
- Each of these buttons correspond to different element of the model.
- You can also create a different ID of your own (by adding an attribute), you will have to manage generation of this id by your own with a Featuire Seq Initializer.

Hope it helps.

Regards,


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Previous Topic:Bind layout constraints to model
Next Topic:Stop overlapping of Component in GMF editor
Goto Forum:
  


Current Time: Sat Nov 01 02:44:25 GMT 2014

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

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