Skip to main content

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 ChoudharyFriend
Messages: 38
Registered: December 2010
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
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 636
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member


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.


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Bind layout constraints to model
Next Topic:Stop overlapping of Component in GMF editor
Goto Forum:

Current Time: Sat Jun 23 02:57:59 GMT 2018

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

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

Back to the top