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

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

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

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’

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’:

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

Then, accept the license, click ‘Finish’:

It will install the plugin,

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

After the installation, you have to restart Eclipse.

2. Create New Apricot Project

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

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

Set the project name, then click ‘Finish’:

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:

Author: Huixing Fang

fang.huixing@gmail.com