Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » SETTING-UP the EDITOR Models by code
SETTING-UP the EDITOR Models by code [message #1053741] Tue, 07 May 2013 09:04 Go to next message
Luca Salemio is currently offline Luca Salemio
Messages: 6
Registered: May 2013
Junior Member
Hi Everyone,
I am realizing a graphical editor with Eclipse GMF.
- First of all I defined an ecore metamodel to describe my editor
- In my ecore metamodel there is an EClass called Block. Since the user can define different blocks to have into the palette that reflect Block definition, I would like to implement a set up phase where he can decide which and how many to have, before starting up the editor and its components. (note: It is not possible to know a priori how many of them he will have and he can also change their properties and number during the normal execution of the program, so for example, he can create a new element of that block and it has to be visible into the palette).

Is it possible to define the .gmfgraph, .gmftool and the others by code without using the GMF Dashboard ?

I hope to have well defined the problem,
Thank you very much in advance.

Best regards,
Luca.
Re: SETTING-UP the EDITOR Models by code [message #1053750 is a reply to message #1053741] Tue, 07 May 2013 09:40 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 555
Registered: November 2009
Senior Member
Hi Luca,

you can completely program using GMF runtime without using GMF Tooling. It could be however be very useful to define a basic set of your language using the GMF models and manipulate the generated elements (figures, palettes etc.) at runtime. That is what works quite well in my case.

Ralph
Re: SETTING-UP the EDITOR Models by code [message #1053893 is a reply to message #1053750] Wed, 08 May 2013 02:49 Go to previous messageGo to next message
Luca Salemio is currently offline Luca Salemio
Messages: 6
Registered: May 2013
Junior Member
Ralph Gerbig wrote on Tue, 07 May 2013 09:40
Hi Luca,

you can completely program using GMF runtime without using GMF Tooling. It could be however be very useful to define a basic set of your language using the GMF models and manipulate the generated elements (figures, palettes etc.) at runtime. That is what works quite well in my case.

Ralph


Thank you very much Ralph for your suggestions.

I am a very beginner with GMF so I am reading tutorials and documentations about it, but I cannot find the one that can really help me.
Since I am using Eclipse Juno I searched here http://help.eclipse.org/juno/index.jsp
but I didn't find any specification.

Can you recommend me where I can find the right documentation for Eclipse Juno ?

Thanks,
Luca.
Re: SETTING-UP the EDITOR Models by code [message #1058222 is a reply to message #1053741] Mon, 13 May 2013 05:17 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 555
Registered: November 2009
Senior Member
Hi,

here you will find documentation on GMF Runtime http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.gmf.doc/reference/api/runtime/overview-summary.html . You should also take a look on the examples and code snippets in the GMF wiki.

Ralph
Previous Topic:Methode to count component
Next Topic:Modify the origin of links
Goto Forum:
  


Current Time: Tue May 28 13:37:11 EDT 2013

Powered by FUDForum. Page generated in 0.01783 seconds