Skip to content
Andrey Sobolev edited this page Oct 29, 2015 · 11 revisions

Requirements

Clone the project

Using a git client clone the project by the following command: $ git clone git@github.com:xored/yang-ide.git

Import the projects into Eclipse

  • Open Eclipse IDE
  • Select File->Import... main menu
  • Select Existing Project into Workspace
  • Select root directory to yang-ide
  • Check all eclipse projects from the following locations:
    • yang-ide/plugins
    • yang-ide/features
    • yang-ide/product/target-platform

Configure Eclipse

Set Target Platform

Navigate to the project target-platform, open com.cisco.yangide.target-platform.target, after Eclipse will resolve all dependencies click on "Set as Target Platform"

Set Code Style

  • Select Windows->Preferences in the main menu
  • Navigate to Java->Code Style->Formatter section
  • Click Import... and select yang-ide\product\codeformatter.xml file
  • Navigate Java->Code Style->Code Templates section
  • Click Import... and select yang-ide\product\codetemplates.xml file
  • Close the preferences

Build the Project by Maven

  • Open command line
  • Navigate to root directory of the project (eg yang-ide)
  • Execute mvn package console command
  • The result of the build will be placed in yang-ide/product/update-site/target/repository

Run YANG IDE from Eclipse Development Environment

  • Select Run->Run Configuration... in the main menu
  • Create a new eclipse application under the category Eclipse Application
  • Set MaxPermSize оf the launched JVM to 512m; you can do it in an either way:
    • Go to Arguments page and add -XX:MaxPermSize=512m to VM arguments edit box; you will need to do it each time you create a new launching configuration.
    • Exit Eclipse, open eclipse.ini and set value of --launcher.XXMaxPermSize to 512m. Restart Eclipse. From that moment every crated launcher will have its maximal PermGen of 512m by default.
  • Click Run button
  • Home
  • First Steps
    • Installation Guide
    • [Import Project](Import Project)
    • [Create Project](Create Project)
    • [Yang Editor](Yang Editor)
  • New and Noteworthy
    • [1.0.0 release notes](M1 release notes)
    • [1.1.0 release notes](1.1.0 release notes)
    • [1.1.1 release notes](1.1.1 release notes)
  • [Features] (Features)
  • [M2E Integration] (M2E Integration)
  • [Yang Project Support] (Yang Project Support)
  • [Code Editing] (Code Editing)
  • [Code Navigation] (Code Navigation)
  • [Code Refactoring] (Code Refactoring)
  • [Diagram Model Editor] (Diagram Editor)
  • Developer Documentation
  • [Setup and build](Setup and build)
Clone this wiki locally