amzn/ion-eclipse-plugin

Name: ion-eclipse-plugin

Owner: Amazon

Description: An Eclipse plugin for working with files using the Amazon Ion data format.

Created: 2016-09-20 18:43:42.0

Updated: 2018-05-05 00:08:19.0

Pushed: 2018-05-05 00:08:18.0

Homepage:

Size: 98

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Getting Started

This project uses a Git submodule to pull in the Ion test data suite. You must either clone this project via git clone --recursive or update the submodule afterwards via git submodule update --init. If you don't do this, the unit tests will fail (obscurely, when run through Maven).

Installing Eclipse

Regardless of whether you use the Oomph installer or the full download, you want to install the “Eclipse DSL Tools” product. This includes the Plug-in Development Tools (PDT) and Xtext features used by this project. The code requires Xtext 2.10; that comes standard with Neon but if you're using Mars you'll need to update those components.

When you import this project into your Eclipse workbench, be sure to enable the Search for nested projects option. Otherwise you'll only get the parent project, which only coordinates the build process, and not the numerous subprojects that contain the actual plugin code.

Building in Eclipse

Most of the plug-in's code is generated by Xtext. When you first open the project, you'll need to generate this code manually.

You'll also need to do this when you modify various core resources such as the grammar definition file Ion.xtext.

Dependency Problems?

If Eclipse is unable to resolve required plugin bundles, you may have a mangled target platform definition. Go to Preferences | Plug-in Development | Target Platform, select software.amazon.ionxtext.target, and Reload.

If the problem is with classes in software.amazon.ion (i.e., the ion-java library), then you've probably not built this project from Maven. That's needed in order to copy POM-first dependencies from the Maven repository into a local pom-first-plugins directory that's linked into the target platform.

Developing in Eclipse

Running the Tests

Do you see Could not initialize class software.amazon.ionxtext.tests.UnitTestUtils? It's probably failing to find the iontests content, which means you forgot to git submodule init.

Running in a child Eclipse instance

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.