configuring eclipse ide with sahipro

8
Kamal Baldawa CONFIGURING ECLIPSE FOR SAHIPRO SCRIPTING

Upload: kamal-baldawa

Post on 16-Apr-2017

67 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Configuring Eclipse IDE with SahiPro

Kamal Baldawa

CONFIGURING ECLIPSE FOR SAHIPRO SCRIPTING

Page 2: Configuring Eclipse IDE with SahiPro

ECLIPSE IDEEclipse is an Integrated development environment (IDE) widely used in JavaScript programming. It is free and open source software. Following are key benefits of configuring sahipro script with Eclipse

1. IDE significantly reduces time and effort for scripting through Intellisense and content assist

2. Refactoring of scripts can be done easily with global find and replace

3. Framework integration with SCM tools like perforce, GIT enable automatic check-in/out

4. Syntax checking

Page 3: Configuring Eclipse IDE with SahiPro

STEP 1 – DOWNLOAD ECLIPSEDownload Eclipse Mars from following url. https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2

Unzip the folder under Program Files. You can create shortcut for eclipse.exe on your desktop

Page 4: Configuring Eclipse IDE with SahiPro

STEP 2 – INSTALL JSDT PLUG-IN• Click on Help | Install New Software • Enter Kepler url - Kepler - http://

download.eclipse.org/releases/kepler• Click Next and Finish Installation. It might

take 5-10 minutes to complete the installation

Page 5: Configuring Eclipse IDE with SahiPro

STEP 3 – SET .SAH EXTENSION • Click on Windows | Preferences |

General | Content Types• In Content types: section, select

Text | JavaScript Source File and then in File associations: section, click on Add.

• Make association for *.sah and click Ok.

Page 6: Configuring Eclipse IDE with SahiPro

STEP 4 : CREATE JAVASCRIPT PROJECT1. Click on File | New | Javascript Project2. You can create new project or point to existing

source of Sahi scripts3. Make sure apis.sah is available in the project

script directory for keyassist to work

Page 7: Configuring Eclipse IDE with SahiPro

STEP 5 : VER IFY I NCLUDE PATH FOR N EW PROJECT

Page 8: Configuring Eclipse IDE with SahiPro

API AND CONTENT ASSIST SNAPSHOTOpen any .sah file from the JavaScript project, and you should now be able to see syntax highlighting.

Type the first few letters of a function and press Ctrl + Space to bring up template proposals.