Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "RAP/EMF Integration"
(→UI and Edit Framework) |
|||
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). | ||
− | + | The next sections oulines the basic steps to run EMF on RAP. | |
− | The minimal | + | === Assemble the Runtime Target === |
+ | |||
+ | The minimal runtime consists of EMF for RAP and the RAP runtime itself. To set up the target platform, the most conventient way is assemble it directly from the software repositories: | ||
+ | * EMF for RAP: <code>http://download.eclipse.org/modeling/emf/emf/updates/2.6</code>) | ||
+ | * RAP Runtime: <code>http://download.eclipse.org/rt/rap/1.3/runtime</code>) | ||
+ | |||
+ | {{warning|Neither EMF for RAP nor the RAP runtime must not be installed into the IDE, it will break the IDE. See bug 306361}} | ||
[[Image:Rapemftarget.png]] | [[Image:Rapemftarget.png]] |
Revision as of 10:53, 24 March 2010
| RAP wiki home | RAP project home |
Contents
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).
The next sections oulines the basic steps to run EMF on RAP.
Assemble the Runtime Target
The minimal runtime consists of EMF for RAP and the RAP runtime itself. To set up the target platform, the most conventient way is assemble it directly from the software repositories:
- EMF for RAP:
http://download.eclipse.org/modeling/emf/emf/updates/2.6
) - RAP Runtime:
http://download.eclipse.org/rt/rap/1.3/runtime
)
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.
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.