Jump to: navigation, search

Difference between revisions of "Graphical Modeling Framework/Tutorial/Part 4"

m (Generating EMF for RCP)
m (Generating EMF for RCP)
Line 6: Line 6:
 
Let's begin with a new workspace to keep things isolated from the main tutorial a bit.  This also eases maintenance of the tutorial content.  We will begin by generating the EMF code for an RCP application.  Your EMF .genmodel settings will be picked up by the GMF generator, in this case.
 
Let's begin with a new workspace to keep things isolated from the main tutorial a bit.  This also eases maintenance of the tutorial content.  We will begin by generating the EMF code for an RCP application.  Your EMF .genmodel settings will be picked up by the GMF generator, in this case.
  
=== Generating EMF for RCP ===
+
=== GMF Dashboard View ===
First, let's create a new EMF Project and use our same [http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.gmf/examples/org.eclipse.gmf.examples.mindmap/model/mindmap.xsd?rev=1.1&cvsroot=Technology_Project mindmap.xsd] model from the main tutorial as the input.
+
First, let's create a new org.eclipse.gmf.examples.mindmap GMF Project and keep the option to use the dashboard view this time. Below is an image of the dashboard view we will use to work through the flow of producing a GMF-based editor. As you can see, it invokes actions for many of the steps we routinely use in GMF-based development, but all from a single location.
  
[[Image:mindmap_rcp.png|frame|right]]
+
[[Image:gmf_dashboard.png|frame|center]]
 
<br style="clear:both;"/>
 
<br style="clear:both;"/>
 +
=== Generating EMF for RCP ===
 +
First, let's obtain our same [http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.gmf/examples/org.eclipse.gmf.examples.mindmap/model/mindmap.xsd?rev=1.1&cvsroot=Technology_Project mindmap.xsd] model from the main tutorial as the input.  Copy this file to your project's model folder.

Revision as of 09:58, 28 September 2006

In this fourth part of the GMF Tutorial, we will begin to explore alternative generation options; namely, the lite runtime option and targeting RCP.

Please note that this portion of the tutorial was created using the 2.0 development stream codebase, just prior to the M2 release. Things may vary, so you may find inaccuracies contained here. If you do, remember... this is a wiki ;) Your help in maintaining, correcting, expanding, etc. the content here is most welcome (as are posts to the newsgroup and bugzilla, actually).

Lite Runtime Generation to RCP

Let's begin with a new workspace to keep things isolated from the main tutorial a bit. This also eases maintenance of the tutorial content. We will begin by generating the EMF code for an RCP application. Your EMF .genmodel settings will be picked up by the GMF generator, in this case.

GMF Dashboard View

First, let's create a new org.eclipse.gmf.examples.mindmap GMF Project and keep the option to use the dashboard view this time. Below is an image of the dashboard view we will use to work through the flow of producing a GMF-based editor. As you can see, it invokes actions for many of the steps we routinely use in GMF-based development, but all from a single location.

Gmf dashboard.png


Generating EMF for RCP

First, let's obtain our same mindmap.xsd model from the main tutorial as the input. Copy this file to your project's model folder.