Tutorials‎ > ‎

Quick Start Tutorial

posted Jan 20, 2011, 3:20 PM by Nikolay Krasko   [ updated Jan 24, 2011, 12:15 AM ]

EclihX Perspective

In order to begin development in haXe you should activate an EclihX perspective. The perspective in eclipse is a way of grouping views, editors and wizards to stay focused on your current task. If you installing EclihX in JDT eclipse installation you will start with Java perspective. See the screenshots below.



Haxe Resource Wizards

After you are in correct perspective "haxe Package Explorer" and "Package Explorer" views will show you haxe resources wizards in context menu:


Haxe Compiler Path

It's very important to configure haxe-compiler as soon as you have turned Eclihx perspective on, because IDE uses it for autocomplete proposals construction. Eclihx will inspect environment variables to try to properly set a default path, but you should also know how to change it if you're working with trunk version of haxe. So you should open "Window->Properties" item of main menu and find "haXe(EclihX)->Compiler" page. Change "haXe compiler" according to your haxe installation.


Launching

Now suppose you have successfully created a project with the "haXe Project" wizard, filled it with source files and prepared at least one hxml-file with build configuration. To build the project you should create a run configuration:
  1. Open a "Run Configurations..." dialog ("Run->Run Configurations..." in main menu or "Run As->Run Configurations..." in the context menu of the project in one of the explorers views).
  2. Double click on "haxe application" to create a new configuration.
  3. The new configuration with prefix "New_configuration" should be created. You can rename it for a better  multiple configuration management in the workspace.
  4. Click "Select Project..." button to choose a project to build.
  5. If necessary click "Build file..." to choose a desired hxml-file for launching.
  6. Click "Run" to launch created configuration
  7. You can run created configuration with Ctrl+F11 shortcut or from "Run->Run History->You configuration" in the main menu. 


Summary

I have described only most significant functions of eclihx in this tutorial and I'm ready to hear your comments about features you'd like to be described in more detail.


Please see the Donation page to know how you can help the project

Comments