gmf_tutorial1 [GMF Samples And Tutorials]
 

Overview

In this tutorial we will build a simple editor allowing to create folders and files.

Full code is availabale through :

This tutorial has been built with :

  • Eclipse 3.5.1
  • Graphical Modeling Framework SDK 2.2.1
  • Eclipse Modeling Framework 2.5.0

Model creation

In this section, we will create a new model via annotated interfaces (cf. Model creation via annotated interfaces for more information).

Ecore model creation

  • Create a new GMF Project named Filesystem
  • Create a new Java package jfb.examples.gmf.filesystem
  • Create a new interface named Filesystem :
package jfb.examples.gmf.filesystem;
 
import java.util.List;
 
/**
 * @model
 */
public interface Filesystem {
 
	/**
	 * @model containment="true"
	 */
	List<Folder> getFolders();
 
	/**
	 * @model containment="true"
	 */
	List<File> getFiles();
 
}
  • Create a new interface named Folder :
package jfb.examples.gmf.filesystem;
 
import java.util.List;
 
/**
 * @model
 */
public interface Folder {
 
	/**
	 * @model
	 */
	String getName();
 
	/**
	 * @model
	 */
	List<Folder> getFolders();
 
	/**
	 * @model
	 */
	List<File> getFiles();
 
}
  • Create a new interface named File :
package jfb.examples.gmf.filesystem;
 
/**
 * @model
 */
public interface File {
 
	/**
	 * @model
	 */
	String getName();
 
}
  • Menu New > Other, select EMF Generator Model, and click Next

  • Select the project's model folder and type the file name : model.genmodel, and click Next

  • Select Annotated java, and click Next

  • Click on Finished

  • This is the result :

  • It is possible to see the model graphically (to get that diagram, right click on the ecore file and select Initialize ecore_diagram diagram file) :

Model classes generation

  • Open filesystem.genmodel
  • On the root item, right click and select Generate Model Code ; This will generate two new packages and override the model interfaces initially created :

  • Right click again on the root and select Generate Edit Code.
  • Right click again on the root and select Generate Editor Code.
  • Open the file META-INF/MANIFEST.MF, go to the Runtime tab and check that the 3 packages are present in the exported packages list :

Dashboard configuration

GMF comes with a dashboard view that helps to generate severals files required to build your diagram editor.

To show this view, use the menu Window > Show views > Other and select GMF Dashboard in the General node.

  • In the Domain Gen Model of the dashboard, click on select and choose the file filesystem.genmodel.
  • In the Domain Model of the dashboard, click on select and choose the file filesystem.ecore.
  • The work progress should be 33% done (on the right of the dashboard)

Tooling Definition Model

This step allows to define the tools that will be present in the palette of the editor.

In our example, we want :

  • one creation tool for the folders
  • one creation tool for the files
  • one creation tool for the links between folders and sub folders
  • one creation tool for the links between folders and sub files

These are the steps to follow to accomplish this :

  • In the dashboard, click on the Derive label which is on the left of the Tooling Def Model rectangle.
  • Select the filename filesystem.gmftool in the folder model :

  • Select the diagram element Filesystem and click Next :

  • Check that the domain elements File and Folder are checked in the nodes column, and that the folders and files associations are checked in the connections column and the click Finish:

  • A file named filesystem.gmftool should be generated :

With this model we will get a tool palette in the diagram editor like this :

Graphical Definition Model

This step allows to define the graphical items to use to represent our model in the diagram.

These are the steps to follow to accomplish this :

  • In the dashboard, click on the Derive label which is on the left of the Graphical Def Model rectangle.
  • Select the filename filesystem.gmfgraph in the folder model :

  • Select the diagram element Filesystem and click Next :

  • Check that the domain elements File and Folder are checked in the nodes column ; Check that the folders and files associations are checked in the connections column ; Check also that the file's name and the folder's name are checked in the labels column and then click Finish:

  • A file named filesystem.gmfgraph should be generated :

  • Under the Rectangle FolderFigure, add a child Background Color Constant Color ; select it and choose lightGray in the properties view (this will allow to distinguish the folder nodes from the file nodes) :

Mapping Model

The mapping definition model allows to bind the three models (domain / graphical definition / tooling definition).

These are the steps to follow to accomplish this :

  • In the dashboard, click on the Combine label
  • Select the filename filesystem.gmfmap in the folder model :

  • Select the diagram element Filesystem and click Next :

  • Click Next :

  • Click Next :

  • Click Finish :

  • A file named filesystem.gmfmap should be generated :

  • Select the <Folder/Folder> node mapping and in the property view correct if necessary :
    • Diagram Node = Node Folder (FolderFigure)
    • Tool = Creation Tool Folder
  • Repeat this operation with the <File/File> node :
    • Diagram Node = Node File (FileFigure)
    • Tool = Creation Tool File
  • Repeat this operation with the <{Folder.files:File}/FolderFolders> link:
    • Diagram Node = Connection FolderFiles
    • Tool = Creation Tool FolderFiles
  • Repeat this operation with the <{Folder.folders:Folder}/FolderFolders> link:
    • Diagram Node = Connection FolderFolders
    • Tool = Creation Tool FolderFolders

Diagram Editor generation

Befor generating the editor, we have to generate the last model : the Diagram Editor Gen Model.

To create it, click on the label Transform of the dashboard.

A file named filesystem.genmodel should be generated :

At this point it possible to modify the general behavior of the editor :

  • by default, GMF stores the model's and the diagram's data into two separate files ; you can ask GMF to use only one by setting the property 'Same File for Diagram' to true.
  • it is also possible to choose the file(s) extension(s)

Now it is time to generate the diagram by clicking on the Generate diagram editor in the dashboard.

After a few seconds, the diagram editor is generated :

At this point you should have four projects :

Run and test

Now that the editor have been generated, it is possible to run it.

  • Menu Run > Run configurations…
  • Create a new Eclipse Application configuration, call it filesystem app

  • Select the Plugin configuration tab
  • Select plugins selected below only for the Launch with field
  • Deselect the node Target Platform
  • Click on Filesystem.diagram plugin checkbox
  • Click on Filesystem.editor plugin checkbox
  • Click on the Add Required Plugins button

  • Click Run
  • When the new window is opened, create a new projet, and a new file of type Filesystem diagram :

  • this is the result…

Model files

You can get the filesystem model files described in this tutorial following this link : gmf-tutorial1-filesystem-model.zip

Thank you

I hope that this material will be helpful for you. If you want to support it, your help is welcome :

Discussion

Iman, 2010/05/03 21:01

Thank you very much for your great tutorial, it really helped me.

I have 2 problems: I cannot view the diagram (class diagram) with (FileSystem, File, Folder) and I cannot view the last important diagram: default.filesystem_diagram. Also I want to ask, how the data in the last diagram appeared, do I edit them or there is something else that I should do?

Thank you very much again.

Jean-François Brazeau, 2010/07/07 21:50

Hum… Could you be more precise ? Can you tell which section of this tutorial is problematic for you ? Did you follow every step ?

JFB

Khediri, 2010/05/04 09:44

Bonjour,

Pour voir le diagramme de classes vous pouvez cliquer sur filesystem.ecore avec bouton droit ensuite initialize ecore_diagram diagram file vous aurez ainsi un fichier filesystem.ecorediag.

Iman Helal, 2010/05/04 18:06

Thank you very much, it worked with me.

Jean-François Brazeau, 2010/07/07 21:51

Tout à fait ! A l'époque de la rédaction de ce tutoriel je ne connaissais pas cette fonctionnalité ! C'est à présent corrigé.

gmf_newbie, 2011/02/17 13:22

Great turorial!!!!

saranmathavan, 2011/03/08 19:57

Hi During the generation of the generator model I am getting “Errors while creating generator model java.lang.NullPointerException”. I have tried a lot of times rectifying this error. Kindly help me clearing this error.

Jean-François Brazeau, 2011/04/15 19:18

Hum… It looks like a GMF's bug… Maybe you should try to update your eclipse environment ?

Mostafa, 2013/02/12 08:38

Hi… Are you sure this is a GMF's bug??? because I updated my GMF in Juno again, but my problem do not resolve! I am using Version 3.0.2 of GMF

SoumayaNewbie, 2011/03/09 10:24

I really like your tutorial: very clear and simple.

I am discovering GMF and I dont know exactly what it may offer. I have 3 questions.

- Is it possible to load a file that contains (in the case of this tutorial) a description of files and folders? If yes, what should be the to-be-loaded file's extention?

- Can I generate an image (.jpg for example) from a diagram I drew?

- I want to draw a diagram then associate some actions when I select a node (in our case a folder or a file). Can GMF (in general) offer that?

Hope you will be able to answer me as soon as you can. Thanks in advance ^^

Jean-François Brazeau, 2011/04/15 19:33

Hi, In this example, the model file and the diagram file are mixed. It is possible to separate them, you just have to set not the Same File for Diagram property to true. It is possible to generate an JPG file (or PNG, …) by right clicking in the background of you diagram editor and selecting File > Save As Image File. I think it is possible to add a special behaviour in your diagram editor when nodes are selected but I never did it. You will maybe have to use selection listeners to handle such events. Regards, JFB

Bobster, 2011/03/30 00:37

Thanks a lot for this tutorial, dude.

Apparently, all the Eclipse tutorials are messed up since GMF went inside GMP.

So I finally found yours, which works fine on Eclipse Helios.

gmf_new_user, 2011/04/05 21:00

Congratulations for these tutorials.

I need help creating GMF node element with another element in the border, but without using templates.

Can you help me please?

Thanks in advance.

Jean-François Brazeau, 2011/04/17 20:12

Maybe could you take a look at the Affixed Parent Side property (gmfgraph) ?

nado, 2011/04/08 16:46

Hello

At the mapping model step I don’t have nodes and links

Any help please

Jean-François Brazeau, 2011/04/17 20:14

Have you tried to replay the tutorial step by step ?

iqbal, 2011/08/09 05:10

Hi, it is a nice tutorial. but i am having some problem. Finally when u run the diagram u said,

“When the new window is opened, create a new projet, and a new file of type Filesystem diagram”

It means i have to create a project then create the diagram file. that is, the diagram should be under the project. with out creating the project i cannot create the diagram. is it rit?

my problem is, with out creating the project i can create the diagram and the diagram file is in a defalut location(c:\user\iqbal). ans also the icon color is diffrent.in ur tutorial the icon beside filesystem diagram is green, but for my case it is violate. is there any significant meaning of this?

thank you

Jean-François Brazeau, 2011/12/08 21:04

Hello,

You are right, you must first create the project and then the diagram file. The icon does not matter so much, you are also right !

Regards,

JFB

ramiz, 2011/09/14 05:37

nice tutorial..thankks alott

Vaibhav B, 2012/01/16 10:18

I like your tutorial: very clear and simple example.

I have 1 problem: After creation of filesystem.gmfmap when I am trying to select NodeMapping <Folder/Folder> or anything in gmfmap. I am getting popup message. Problem Occurred with following error message while creating label mapping from the graphical definition.

java.lang.NoSuchMethodError org.eclipse.gmf.mappings.GMFMapFactory.createExpressionLabelMapping()Lorg/eclipse/gmf/mappings/ExpressionLabelMapping;

Jean-François Brazeau, 2012/02/11 20:35

Which version of eclipse and GMF do you use ?

miro, 2012/01/19 17:09

thanks for this tutot…very good

i am working with eclipse INDIGO, i am not able to view the link “initialize ecore_diagram diagram file ” by clicking my .ecore file.. do i need other plugins?

thanks and regards

Jean-François Brazeau, 2012/02/11 20:38

Maybe do you have “Initialize Ecore Diagram File” instead ? (it is the same) Or maybe you haven't installed GMF Tooling (it is available from market place).

Jay, 2012/04/08 13:45

Amazing tutorial!. Thanks for your effort in educating several GMF users!

Fady Hamoui, 2012/08/14 08:51

Tout d'abord, merci beaucoup pour le tutoriel.

Je le réalise avec : Eclipse Juno Graphical Modeling Framework SDK 2.3.0 Eclipse Modeling Framework SDK 2.6.1

J'ai un problème. Pourriez-vous m'aider ?

Après avoir suivi toutes les étapes (sans problème), je suis bloqué à l'étape “Diagram Editor generation”. Lorsque j'appuie sur “Generate diagram editor” dans le Dashboard, j'ai le message d'erreur suivant : 'Execute Templates' has encountered a problem Problems while generating code Problems while generating code Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 77) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 77 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 83) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 83 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 83) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 83 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 19) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 19 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 19) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 19 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 83) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 83 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 77) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 77 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 77) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 77 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 49) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 49 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 49) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 49 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 49) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 49 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in CodeStyle, line 18 Exception (Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in xpt::plugin::manifest, line 78) while generating code Boolean expected (was: org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1)!:in xpt::plugin::manifest, line 78

Crush Mach, 2012/09/19 10:48

Bonjour, J'ai le même problème que vous et je voulais savoir si vous êtes arrivés à le résoudre

Fady Hamoui, 2012/09/19 16:57

Non, toujours pas. Peut-être que Jean-François pourrait nous aider…

ZhishangYang, 2012/08/21 09:09

Thank you very much!!

Johan, 2012/09/10 12:17

Thank you very much … this tutorial was easy to follow and it worked straight away !

Fechal Bat, 2012/11/02 18:13

Bonjour,

s'il vous plaît, j'ai besoin le code pour exporter le diagramme constitué en format xml.

Merci d'avance!

pinkie, 2012/12/12 15:50

For anyone who's looking for the fix for this problem; set the Compliance Level of the .genmodel to 6.0 in order to remove these notices. It may not completely remove all the errors, am still looking into that. Found the solution in http://www.eclipse.org/forums/index.php/m/901020/

Tatiana, 2013/02/22 13:03

Thanks for nice tutorial! I tried to run all this in [Eclipse 4.2.1,GMF tools sdk 3.0.2,EMF 2.8.1] (actually it is Eclipse Modeling Tools 1.5.1.20121004-1506 + (GMF) Tooling SDK 3.0.2)

and I have a runtime exception: Application “org.eclipse.ui.ide.workbench” could not be found in the registry.

eclipse.buildId=unknown java.version=1.7.0_11 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ru_RU Framework arguments: -product org.eclipse.platform.ide Command-line arguments: -product org.eclipse.platform.ide -data D:\modelling/../runtime-filesystemapptest -dev file:D:/modelling/.metadata/.plugins/org.eclipse.pde.core/filesystem app test/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.osgi 4 0 2013-02-22 16:38:19.823 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application “org.eclipse.ui.ide.workbench” could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool.

at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

What can I do here?..

Tatiana, 2013/03/06 13:30

I have to say, that my previous problem (see above) hadbeen caused because Eclipse doesn't add all requiered plugins in “Run Configuration” window, so you should add 2 plug-ins below,too:

org.eclipse.core.net org.eclipse.ui.ide.application

nicomiaou, 2014/01/14 20:53

Same problem with ubuntu 12.04, thank you Tatiana, your solution works fine.

qinguan, 2013/03/17 09:50

nice artical! tks~

Heeren , 2013/05/02 16:28

Hi,

That's a great tutorial. But as it is kind of a flat model hierarchy. Hence, I was wondering if it is possible to generate things even if my model doesn't have flat hierarchy but somehow like graph hierarchy? I am getting stuck at the time of Mapping phase when after combining all the domain model, graphical model and tool model, I got the Nodes which are only in the immediate next in my model Hierarchy. In my model, I don't have something root like FileSystem.

Thanks.

Fabio, 2013/12/04 12:51

Very good article

Did it have any example like this but agreagando generation with Acceleo MTL.

Thank you.

Dao, 2014/03/19 02:20

During the generation of the generator model I am getting “Errors while creating generator model java.lang.NullPointerException”. I have tried a lot of times rectifying this error. Help me, clear this error

Agustin, 2014/03/20 23:01

Hi,

I have to say it is a great tutorial, very useful and easy to follow.

I am facing a problem in the generated XML final diagram, and I'd like to know if it is possible to change the entity nodes generated (using the .ecore node name) e.g. I'd like to change <files> to <file or File>; and <folders> to <folder or Folder> in the following example. Is there any way to do it?

<jfb.examples.gmf.filesystem:Filesystem xmi:id="_VFkHMLCAEeOdou7_dXIPjg">
  <folders xmi:type="jfb.examples.gmf.filesystem:Folder" xmi:id="_WWim4LCAEeOdou7_dXIPjg" name="Folder1" folders="_XGFNcLCAEeOdou7_dXIPjg" files="_Vt-LALCAEeOdou7_dXIPjg"/>
  <folders xmi:type="jfb.examples.gmf.filesystem:Folder" xmi:id="_XGFNcLCAEeOdou7_dXIPjg" name="Folder2"/>
  <files xmi:type="jfb.examples.gmf.filesystem:File" xmi:id="_Vt-LALCAEeOdou7_dXIPjg" name="File1"/>
</jfb.examples.gmf.filesystem:Filesystem>

Thank you very much.

Rahma, 2014/04/07 14:07

Hello, very nice tutorial, thanks. I have a problem when generating the .genmap . I don't have any nodes or links . any ideas ? a missing plugin may be ?

melek, 2014/04/14 14:03

hello i'm not an expert on java and eclipse :( can any one help me ? i need to build a project GMF from an ecore model i would like to have in pallette a figur of a person (actor) and ellipse yellow (use case) and links in which i find the differents connection such as extend and include . please i wait your answer and thanks a lot.

laïd, 2014/07/22 18:47

Hello;

I am looking for the development of a graphical editors for high level Petri nets using GMF. I want that the editor allows the openning of many views where many nets can be seen at the same time, and where a place from one editor can be developped in another editor.

any idea please

 
gmf_tutorial1.txt · Last modified: 2012/06/15 20:56 by jfbraz
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki