|
|
(12 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | = Eclipse Setup =
| + | #REDIRECT [[Lyo/modelling_and_generation/installation | Modelling and Generation Installation]] |
− | | + | '''''News''''': This workshop is now integrated into the [[Lyo/ToolchainModellingAndCodeGenerationWorkshop | Graphical Toolchain Modelling and Code Generation Workshop]]. The new modelling approach supports the modelling of a complete toolchain (including interactions between OSLC servers and clients), as well as a single server and/or client. |
− | The following steps need only be performed once to setup your Eclipse environment.
| + | |
− | | + | |
− | == Necessary Eclipse Installations ==
| + | |
− | The code generator is known to work on both Eclipse Kepler and Luna.
| + | |
− | | + | |
− | 1. Unless already installed, you need to first install a JDK (at least version 7 is necessary)
| + | |
− | | + | |
− | 2. install one of the following (using Eclipse’s “'''Help --> Install new software'''” dialog)
| + | |
− | === Eclipse Standard Kepler (4.3.1) ===
| + | |
− | * Eclipse Git Team Provider (EGit); version 3.1.0
| + | |
− | * Maven Integration for Eclipse (m2e); version 1.4.0
| + | |
− | * Acceleo; version 3.4.1
| + | |
− | * Eclipse Java EE Developer Tools; version 3.5.1
| + | |
− | * Eclipse Java Web Developer Tools; version 3.5.1
| + | |
− | * EMF Facet SDK (Incubation); version 0.3.1
| + | |
− | * EMF - Eclipse Modeling Framework SDK; version 2.9.1
| + | |
− | | + | |
− | === Eclipse Standard Luna (4.4.2) ===
| + | |
− | * Maven Integration for Eclipse (m2e); version 1.5.1
| + | |
− | * Acceleo; version 3.5.1
| + | |
− | * Eclipse Java EE Developer Tools; version 3.6.3
| + | |
− | * Eclipse Java Web Developer Tools; version 3.6.3
| + | |
− | * EMF Facet SDK (Incubation); version 0.4.2
| + | |
− | * EMF - Eclipse Modeling Framework SDK; version 2.10.2
| + | |
− | | + | |
− | == Eclipse Environment Setup ==
| + | |
− | The following steps need only be done once per Eclipse environment setup.
| + | |
− | | + | |
− | # Clone the OSLC Core repository | + | |
− | ## git clone git://git.eclipse.org/gitroot/lyo/org.eclipse.lyo.core.git
| + | |
− | ## cd org.eclipse.lyo.core
| + | |
− | # View the Git repository in Eclipse
| + | |
− | ## Open the Git Repositories perspective in Eclipse
| + | |
− | ## Click the “Add an existing local Git repository” icon.
| + | |
− | ## Select the “org.eclipse.lyo.core” repository
| + | |
− | ## The repository should now show up in your Git Repositories view
| + | |
− | # Import the Eclipse projects from the Git repository
| + | |
− | ## In the Git Repositories view, right click the org.eclipse.lyo.core repository and select Import Projects
| + | |
− | ## Select the Import Existing Projects wizard and click next
| + | |
− | ## Select the “adaptor_model” & “codegenerator” projects.
| + | |
− | # Make sure '''JAVA_HOME''' environment variable is set to [at least] a JDK 1.6.
| + | |
− | ## JRE of eclipse needs to use JRE in the JDK dir
| + | |
− | ## Select '''''Window-->Preferences'''''
| + | |
− | ## Select '''''Java-->Installed JREs'''''
| + | |
− | ## Click '''''Add…'''''
| + | |
− | ## In the new window that appears,
| + | |
− | ### choose '''''Standard VM''''' as JRE Type
| + | |
− | ### click '''''Next'''''.
| + | |
− | ### As '''''JRE home''''' choose the installation dir of your JDK 1.6
| + | |
− | ### click '''''Finish'''''.
| + | |
− | ## Back to the preferences screen
| + | |
− | ### select the old JRE
| + | |
− | ### click Remove
| + | |
− | ### check the newly added JDK and
| + | |
− | ### click '''''OK'''''.
| + | |