An Eclipse plugin client for ariatemplates/editor-backend
.
You can launch an Eclipse application with the plugin using an external backend (see procedure below) and use it to edit files with .tpl
and .tml
extensions, using Aria Templates syntax.
README.md
: this current file.gitignore
: Git related filepackage.json
: npm package definition, to be able to embed the backend server and use other npm/Node.js toolsnode_modules
: contains the npm modules listed inpackage.json
statics
: folder containing some resources for developmentGruntfile.js
: Grunt entry point, to run development tasksbuild
: resources to export the product as a package (different formats supported)bin
: folder containing the build of the plugin
Code:
src
: the sources of the Eclipse pluginbuild.properties
,plugin.xml
,META-INF
: Eclipse plugin definition.project
,.classpath
,.settings
: Eclipse project definition/configuration
To ignore:
bin
: generated content (from the sources)node_modules
: generated frompackage.json
To version: everything else.
For the time being, there is no publicly available package.
This means you will need to follow the contribution guide steps to install everything that is necessary to build yourself a package.
First of all: READ CAREFULLY THE DOCS.
Please have a look at the documentation of the documentation too (we follow the same rules as for the backend project).
This is the required environment — software and configuration — you will need to work on the project.
- Eclipse IDE — 3.6 minimum / Preferably choose Java EE bundle
- Plugin: PDE — this is the tool used to develop Eclipse plugins, features and so on.
- Bundle: Google GSON from Orbit repository — this is a dependency of the project
- In general, every other dependencies of the plugin should be installed if not already present. Please check the content of the file
META-INF/MANIFEST.MF
, propertyRequire-Bundle
.
- Java SE — 6 minimum
- Node.js & npm, please refer to the backend documentation which explains well how to do it
- Git (Windows package)
Tested on Microsoft Windows 7 Enterprise 64-bit SP1.
After cloning the repository
git clone https://github.com/ariatemplates/editor-frontend-eclipse.git
you will have to do some setup.
These are the things to do:
- install the development tools and dependencies, using npm
- import the Eclipse project into your workspace to work on the plugin
- optionally, if you want to use an external installation of the backend server, install it globally
We are mainly using npm/Node.js tools, so run the following command in this folder:
npm install
This will install a local version of the backend server inside the project, which can then be used by the plugin at runtime. This local installation is also required to export the plugin with an embedded backend.
This will also install Grunt and grunt tasks, used to automate some development tasks. Those tasks are described below in this document.
Import the Eclipse project into your workspace:
- Menu:
File
⇨Import...
- Choose item
Existing Projects into Workspace
(under categoryGeneral
) - In
Select root directory
input field put the path to this current folder - In
Projects
list, checkAT Editor
- You are free to set some other settings, then validate by clicking the button
Finish
To use an external version of the backend, run this command:
npm install -g git+https://github.com/ariatemplates/editor-backend#version/x.x.x # Replace x.x.x by the version you want
Please refer to the detailed documentation in build
.
For now the plugin works only with an external backend
- Launch the external backend : run command
editor-backend
from anywhere and keep the shell running - Launch the Eclipse application
- Open the Eclipse Plugin project
- Launch the project as an Eclipse application
- Select the project and open the main menu
Run
or use the contextual menu of the project- select
Run As
to run it normally - select
Debug As
to run it in debug mode
- select
- Choose
Eclipse Application
- Select the project and open the main menu
Please refer to the subfolders of the project for details about corresponding modules specific development: every folder contains its own documentation and is likely to give some paths for contribution.
Also, please refer to the GitHub issue, which constitute a kind of backlog.