Skip to content

Developper guide

Yannick Daveluy edited this page Jul 25, 2023 · 4 revisions

Requirements

It is hightly recommanded to use the Eclipse framework to develop on the xsmp modeler.

The Eclipse IDE for Java and DSL Developers package can be downloaded from here.

Import XSMP projects into your workspace

FileImports...Projects from Git (with smart import)Clone URI and specifie the URI of this repository. All XSMP projects should be imported in your workspace.

Configure the Target platform

The XSMP modeler comes with a target platform that defines all the required plugins for development.

Select the org.eclipse.xsmp.target in the WindowPreferencesPlug-in DevelopmentTarget Platform page (the plugins resolution should take a while).

Configure the Java Formatter

All the XSMP code should be formatted with the provided Profile. Import the formatter-java-eclipse.xml file in WindowPreferencesJavaCode StyleFormatter and select the XSMP profile.

Build the project

Many files are generated by the build process. Select the file pom.xml at the root of the repository then right clickRun AsMaven install.

Check in the console that the build is a success.

Now, all the projects in the Project Explorer should be valid.

Plugins architecture

  • org.eclipse.xsmp: The core plugin for Xsmp language
  • org.eclipse.xsmp.lib: The runtime library for Xsmp projects
  • org.eclipse.xsmp.ide: The ide plugin for eclipse
  • org.eclipse.xsmp.ui: The Eclipse UI for Xsmp: editors, wizards, ...
  • org.eclipse.xsmp.target: The Eclipse target Platform to use for development
  • org.eclipse.xsmp.test: Tests for the core plugin
  • org.eclipse.xsmp.ui.test: Tests for the ui plugin
  • org.eclipse.xsmp.forms: EMF Forms property views for Xsmpcat language (In development)
  • org.eclipse.xsmp.sirius: Sirius Xsmpcat language (In development)
  • org.eclipse.xsmp.feature: Eclipse feature for Xsmp
  • org.eclipse.xsmp.repository: Xsmp Eclipse repository

Test your local changes

A Launch configuration is provided to run an Eclipse Application with all your local changes: RunRun Configurations...Eclipse ApplicationLaunch Runtime EclipseRun