Skip to main content

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.

Jump to: navigation, search

Lyo/AdaptorCodeGeneratorWorkshop/EclipseSetup

< Lyo‎ | AdaptorCodeGeneratorWorkshop
Revision as of 03:09, 2 October 2015 by Jad.kth.se (Talk | contribs) (Necessary Eclipse Installations)

Eclipse Setup

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.

  1. Clone the OSLC Core repository
    1. git clone git://git.eclipse.org/gitroot/lyo/org.eclipse.lyo.core.git
    2. cd org.eclipse.lyo.core
  2. View the Git repository in Eclipse
    1. Open the Git Repositories perspective in Eclipse
    2. Click the “Add an existing local Git repository” icon.
    3. Select the “org.eclipse.lyo.core” repository
    4. The repository should now show up in your Git Repositories view
  3. Import the Eclipse projects from the Git repository
    1. In the Git Repositories view, right click the org.eclipse.lyo.core repository and select Import Projects
    2. Select the Import Existing Projects wizard and click next
    3. Select the “adaptor_model” & “codegenerator” projects.
  4. Make sure JAVA_HOME environment variable is set to [at least] a JDK 1.6.
    1. JRE of eclipse needs to use JRE in the JDK dir
    2. Select Window-->Preferences
    3. Select Java-->Installed JREs
    4. Click Add…
    5. In the new window that appears,
      1. choose Standard VM as JRE Type
      2. click Next.
      3. As JRE home choose the installation dir of your JDK 1.6
      4. click Finish.
    6. Back to the preferences screen
      1. select the old JRE
      2. click Remove
      3. check the newly added JDK and
      4. click OK.

Back to the top