Table of Contents

Code editors: Eclipse, Notepad++, TextPad, SciTE

Eclipse

Presentation

Eclipse is an IDE (Integrated Development Environment). It intends to facilitate the developer's work with integrated tools. Interesting features are:

You don't need to use Eclipse to integrate your model in Capsis. Eclipse IDE has very advanced functionalities and can be a bit complex for occasional programmers. If you are not sure that Eclipse is for you, you can still use your own editor (like Notepad++, TextPad or SciTE), see below.

Download

https://www.eclipse.org/downloads/

We recommend to use the last version of Eclipse : 2019-09 (at last documentation editing time)

Install Capsis with SVN

See: https://amapstudio.cirad.fr/private/installeclipsewithsvn

Build Capsis

Run Capsis

Troubleshooting

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>capsis4</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
	</natures>
</projectDescription>

Notepad++ (Windows user)

Presentation & Download

Notepad++ is an open source and powerful code editor for Windows. Features:

More informations: https://notepad-plus.sourceforge.net/

Download Notepad++: https://notepad-plus.sourceforge.net/uk/download.php

Configuration with Capsis

TextPad (Windows user)

Presentation & Download

TextPad is a general purpose editor with coloration and compilation command for Windows.

More information : https://www.textpad.com

Download Textpad : https://www.textpad.com/download

TextPad is a shareware (It is not an Open Source / Libre Software).

Configuration with Capsis

(This way, compile in Capsis will be the first entry in the menu with the usual shortcut CTRL+&. The standard Java tools will be restored later.)

Configuring Textpad to open the file in error at the given line

After a compilation, if there are errors, it is possible to double click on the “file:line” reference to open the file for correction.

Check this configuration :

If trouble with the expressions (double clicking does not open the file):

SciTE (Linux user)

Presentation & Download

Scite is a simple editor available on Linux system. Use your system installer to install it.

For instance, for Ubuntu distribution use:

sudo apt-get install scite 

Configuration with Capsis

command.compile.*.java=sh my_capsis_dir/bin/javac_capsis.sh $(FileNameExt) 
command.build.*.java=sh my_capsis_dir/bin/javac_capsis.sh $(FileNameExt)
command.go.*.java=java $(FileName)

You can now compile in Scite !!

See this note if you want to compile Capsis and Jeeb in Scite.