Developers Knowledge Base

Build, modify and run workflows on geospatial data using Spatial Modeler SDK. Build complex algorithms or run routine tasks, and build add-ons to ERDAS IMAGINE and GeoMedia.
Showing results for 
Search instead for 
Do you mean 

Developing Client Extensions

by Technical Evangelist on ‎09-25-2019 02:39 AM - edited on ‎10-31-2019 07:50 AM by Technical Evangelist (563 Views)

Introduction

You can use an IDE of your choice to extend the MAE Desktop Client. However, we recommend to use the Eclipse IDE as this is the IDE used by the product center team. 

This article describes how to get started with MAE Desktop Client development using the Eclipse IDE.

Prerequisites

  • JDK13
  • Eclipse IDE 2019-09 
  • Make sure that Eclipse is configured to use the JRE of the JDK13:
    Go to Window --> Preferences --> Java --> Installed JREs
    JDK13

Getting Started

  1. Create a workspace
  2. Get the shared samples sources from: https://bitbucket.org/HGDN/hgdn_mae/src/master/Desktop/
  3. Import the template project: File --> Import --> Gradle --> Existing Gradle Project (Project root directory: C:\hgdn_mae\Desktop\TemplateProject)
  4. Make sure that the JRE System Library is JavaSE-12  and mapped to JDK13 (the mapping is done automatically when Window --> Preferences --> Java --> Installed JREs contains only the JDK13)JRE System Library
  5. Start creating your extensions:
    • see example in TemplateProject: src\main\java\com\hexgeo\enterprise\sdk\sample\DemoPlugin.java
    • add your plugin in: src\main\resources\META-INF\services\com.hexgeo.enterprise.core.kernel.api.v1.Plugin
  6. Create Run Configuration: Run --> Run Configurations --> Java Application
  • Main tab
    As project select the TemplateProject
    As main class select com.hexgeo.enterprise.sdk.LauncherRun configuration main

  • Arguments tab
    As project arguments define the Url to connect to the MAE server, the appId and the tenant
    As VM arguments set: -Djava.library.path="${project_loc}\build\natives", the user and the password.Run configuration arguments
      
  • Apply --> Run
Overview