Nit Developer Tools for Eclipse
Installing
For Eclipse Juno
- In the main menu, go to
Help > Install New Software...
- In the "Work with" fields, enter
http://nitlanguage.org/eclipse
- Select the feature "Nit Developer Tools"
- The next window is a list of the tools to be downloaded. Click Next.
- Read and accept the license agreements, then click Finish.
- Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
Features
- Syntax highlighting on *.nit source files
- Background compiler to spot errors and warnings (require a working Nit installation)
- Nit perspective
- Nit project wizard
- Basic completion (ctrl+space)
- Parametrizable editor
- Toggle comment
- Indentation correction
Using
Configuring the Nit Environment
- In the main menu, go to
Windows > Preferences
- Select
Nit
- Set the
Nit Folder Location
to the root of your Nit installation - The other directories should then be automatically set
- Click OK.
Creating a new Nit Project
- In the main menu, go to
File > New > Nit...
- Select wizard
Nit Project
- Click Next.
Using the Nit Development Perspective
- In the main menu, go to
Windows > Open Perspective > Other...
- Choose
Nit
Creating a new Nit module
- In the main menu, go to File > New > File
- Type your file name followed by ".nit"
- Finish
Compiling and Running
- Ensure that your perspective is "Nit"
- In the main menu, go to
Run > Run Configurations...
- Create a new Nit Program configuration (double click)
- Choose where to save the output for the compiler and the file to compile, you can also set the arguments for compiling and executing the program.
- To see the output (and enter input), open a console by
Window > Show View > Console
- If you want to reuse this config, use the popup menu of the green play icon in the toolbar.
Note : it is also possible to skip this step by asking Eclipse to use the current selection (editor or explorer) as the default target for future executions.