Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [Newbie] EMF specialized instance
[Newbie] EMF specialized instance [message #189347] Tue, 27 May 2008 09:15 Go to next message
Nicola Salvo is currently offline Nicola SalvoFriend
Messages: 42
Registered: July 2009
Member
Hello everybody,

I'm really new in the world of modelling. I have to program a Workflow
Editor, and using EMF I defined (a really simple) WF model using edge and
nodes. I'd like to use GMF to implement the editor, is it possible to
provide to the user instances of the model? For example instead of having
only the generic node with n inputs, defining a specialized class, with
only one input, and called OneInputTask.
Sorry for the silly question.
Thanks in advance

Nicola
Re: [Newbie] EMF specialized instance [message #189417 is a reply to message #189347] Tue, 27 May 2008 10:15 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nicola,

> provide to the user instances of the model? For example instead of
Sure. While working with GMF-generated diagram you are editing diagram (notation)
model referencing original model elements, so it is possible to get original
domain model element from each diagram node by calling: org.eclipse.gmf.runtime.notation.View.getElement()

-----------------
Alex Shatalin
Previous Topic:no listLayout in Compartment?
Next Topic:Re: Profile DataType uml editor
Goto Forum:
  


Current Time: Fri Apr 26 14:44:38 GMT 2024

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

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

Back to the top