XtextApricot Update Site for Eclipse

XtextApricot is an Eclipse plugin for Apricot language, you can install the plugin in Eclipse using this URL (as below). For more details, see ‘Install the Plugin’.

http://xtextapricot.apricotresearch.com/

or, you can use this URL:

http://www.fanghuixing.com/XtextApricot/

or, you can use the mirror URL (in China):

http://zl.hwpan.com/u53460366/

XtextApricot is developed on Eclipse (Version: Kepler Release, Build id: 20130614-0229) with Xtext 2.4.3. You can get the source code of XtextApricot from Github (or from Google Code). The update-site for XtextApricot on Google Code is:

 https://xtextapricot.googlecode.com/git/Apricot-Update-Site/

User Guide Contents

  1. Install the Plugin

  2. Create New Apricot Project

  3. Apricot Syntax

  4. Case Study – Modeling Subway Control System in Apricot



1. Install the Plugin

In the ‘Help’ menu of eclipse, select ‘Install New Software…’

Install New Software

The ‘Install’ window will appear, and click ‘Add’ to add a new Repository.

Install New Software

Type the name of the repository (we use ‘Apricot’ here), and the location ‘http://www.fanghuixing.com/XtextApricot/’ (or ‘http://xtextapricot.apricotresearch.com/’), then click ‘OK’

Install New Software

note: if you want to add the repository by an ‘Archive’, you can download the update file from

http://xtextapricot.apricotresearch.com/download/XtextApricot.zip 

or from the mirror URL (in China):

http://zl.hwpan.com/u53460366/download/XtextApricot.zip

Download XtextApricot.zip, put it in a local folder, and then click ‘Archive…’ in the ‘Add Repository’ window, select the zip file you downloaded, and so on.

You will see the available software, the name and the version information, select all as the below, and click ‘Next’:

Install New Software

It will calculate the dependencies and requirements (about 5 minutes), at last, the ‘Install Details’ would come up, now click ‘Next’:

Install New Software

Then, accept the license, click ‘Finish’:

Install New Software

It will install the plugin,

Install New Software

If you see a security warning, just click ‘OK’.

Install New Software

After the installation, you have to restart Eclipse.

Install New Software



2. Create New Apricot Project

At first, select ‘File’->’New’->’Project’:

Create New Project

Select ‘Apricot Project’, then click ‘Next’:

Create New Project

Set the project name, then click ‘Finish’:

Create New Project

Now, we get the new Apricot project, the interfaces are listed in the package ‘com.fofo.apricot’, the example model class is in the package ‘model’.


As follow, the model code view for our subway control system in Eclipse with XtextApricot installed:

Create New Project


Apricot

Author: Huixing Fang

fang.huixing@gmail.com