[Newbie] EMF specialized instance [message #189347] |
Tue, 27 May 2008 05:15  |
Eclipse User |
|
|
|
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 06:15  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04536 seconds