Jump to: navigation, search

Difference between revisions of "RAP/EMF Integration"

< RAP
m (Targeting RAP as runtime)
Line 12: Line 12:
 
Since 2.6 M6, EMF provides branches of it's UI/Edit framework for use with RAP. The necessary bundles are available from the EMF software repository and can be used together with the RAP runtime (> 1.3 M6).
 
Since 2.6 M6, EMF provides branches of it's UI/Edit framework for use with RAP. The necessary bundles are available from the EMF software repository and can be used together with the RAP runtime (> 1.3 M6).
  
== Target provisioning ==
+
=== Target provisioning ===
  
 
The minimal target of an EMF and RAP runtime consists of two p2 repositories, one for RAP and one for the EMF RAP support.
 
The minimal target of an EMF and RAP runtime consists of two p2 repositories, one for RAP and one for the EMF RAP support.
Line 20: Line 20:
 
Please be sure to '''uncheck''' the "Include required software" option when adding the features from the repositories.
 
Please be sure to '''uncheck''' the "Include required software" option when adding the features from the repositories.
  
== Targeting RAP as Runtime ==
+
=== Targeting RAP as Runtime ===
  
 
Open up the Properties view on your .genmodel file and set the "Rich Ajax Application" from the "Editor" category to true.
 
Open up the Properties view on your .genmodel file and set the "Rich Ajax Application" from the "Editor" category to true.
Line 28: Line 28:
 
After that you can generate your edit and editor code.
 
After that you can generate your edit and editor code.
  
== Launch the application ==
+
=== Launch the application ===
  
 
You can now launch the application via it's generated IApplication. Just use the ''LibraryEditorAdvisorApplication'' entrypoint.
 
You can now launch the application via it's generated IApplication. Just use the ''LibraryEditorAdvisorApplication'' entrypoint.

Revision as of 09:26, 24 March 2010

| RAP wiki home | RAP project home |

Emf rap.png

EMF Runtime

The non-UI part of EMF works with RAP out of the box. With the aid of the following bundles, EMF models can be created and accessed.

  • org.eclipse.emf.common
  • org.eclipse.emf.ecore

Even though these bundles express an optional dependency on org.eclipse.core.resources, this dependency isn't required at runtime.

UI and Edit Framework

Since 2.6 M6, EMF provides branches of it's UI/Edit framework for use with RAP. The necessary bundles are available from the EMF software repository and can be used together with the RAP runtime (> 1.3 M6).

Target provisioning

The minimal target of an EMF and RAP runtime consists of two p2 repositories, one for RAP and one for the EMF RAP support.

Rapemftarget.png

Please be sure to uncheck the "Include required software" option when adding the features from the repositories.

Targeting RAP as Runtime

Open up the Properties view on your .genmodel file and set the "Rich Ajax Application" from the "Editor" category to true.

Rapemfproperties.png

After that you can generate your edit and editor code.

Launch the application

You can now launch the application via it's generated IApplication. Just use the LibraryEditorAdvisorApplication entrypoint.

Rapemflaunch.png

References