Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [gmf-dev] Multipage editor with different model elements and GMF

Hi! 

Please, ask all following questions in a newsgroup. 
I've tried to describe how to use arbitrary domain domain element (not
only root one) as a diagram root there. If you have any other questions
- do not hesitate to post it into newsgroup.

-------------
Alex Shatalin

-----Original Message-----
From: gmf-dev-bounces@xxxxxxxxxxx [mailto:gmf-dev-bounces@xxxxxxxxxxx]
On Behalf Of tlima
Sent: Friday, January 30, 2009 4:28 PM
To: gmf-dev@xxxxxxxxxxx
Subject: RE: [gmf-dev] Multipage editor with different model elements
and GMF


Hi Alexander,

Thanks, 

I see your post in the newsgroup, and I already read the article
"Integrating EMF and GMF Generated Editors", but I don't know yet how to
solution my problems: 

1) I want to have two pages, a main page that will display the model  in
a tree (the EMF selection page), and a second page that will be created
(or
displayed) dynamically in response to the type of the selected element,
if is an automaton will display a graphical editor, if is a function
will display a text editor, and so on.
2) So, I found a problem with the GMF mapping, cause not all of my model
elements will have to be graphically represented (in the GMF generated
editor), and I don't know how to do this mapping, how to do this if its
not the root element (ecore) that will be map to the canvas, but his
children?

Could you help me with this? I'm beginning with GMF and have this
difficulties to implement my project.

Thanks a lot



Alexander Shatalin wrote:
> 
> Hi!
> 
> I've answered this question in a newsgroup.
> 
> -------------
> Alex Shatalin
> 
> -----Original Message-----
> From: gmf-dev-bounces@xxxxxxxxxxx [mailto:gmf-dev-bounces@xxxxxxxxxxx]
> On Behalf Of tlima
> Sent: Thursday, January 29, 2009 10:32 PM
> To: gmf-dev@xxxxxxxxxxx
> Subject: [gmf-dev] Multipage editor with different model elements and 
> GMF
> 
> 
> Hello,
> 
> My name is Tiago, a brasilian student, and I'm working in the 
> development of an open source platform for describe graphically models

> of environmental systems, and started to use the Eclipse platform to 
> do this job.
> 
> I initiated the implementation using the EMF and generate the 
> multi-page editor. And then i started to study the GMF to create the 
> graphical editor.
> But i have great difficulties to do this job and i like some help.
> 
> In simple words, the problem i found is: i have a model with the 
> following simplified strutcture:
> 
> UserModel
>    |-> map1
>    |-> map2
>    (...)
>    |-> automaton1
>    |-> automaton2
>    (...)
>    |-> function1
>    |-> function2
>    (...)
> 
> The user will create elements like maps, automatons, and functions. I 
> build the .ecore and create the editor using the code generation of
EMF.
> But I need to display a different view (editor) as different elements 
> are created and selected. For example, for the map element is wanted 
> to display an image, for the automaton element a graphical state 
> machine editor with states and transition rules, for function element 
> display a text editor.
> 
> I dont know how to do this. I have already created the editor using 
> the EMF code generation. And I created in a separated project (to 
> learn) a simplified state machine graphical editor using the GMF 
> (following the wiki GMF Tutorial), but I don't know how to integrate 
> them and to change the page editor as the different elements are 
> selected. I already seen the article "Integrating EMF and GMF 
> Generated Editors", but the problem is that will not be the root 
> element of the ecore model that will be edited with the graphical 
> editor generated with GMF, and I don't know how to do this mapping...
> 
> I search for some solutions in the eclipse site and foruns, but don't 
> found the solution yet.
> 
> Please someone can help me?
> 
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Multipage-editor-with-different-model-elements-a
> nd
> -GMF-tp21736329p21736329.html
> Sent from the Eclipse GMF - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> gmf-dev mailing list
> gmf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/gmf-dev
> 
> _______________________________________________
> gmf-dev mailing list
> gmf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/gmf-dev
> 
> 

--
View this message in context:
http://www.nabble.com/Multipage-editor-with-different-model-elements-and
-GMF-tp21736329p21749366.html
Sent from the Eclipse GMF - Dev mailing list archive at Nabble.com.

_______________________________________________
gmf-dev mailing list
gmf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gmf-dev



Back to the top