In eXo IDE, you can edit some local files with the registered type within the Code Editor or WYSIWYG Editor. During opening, you can directly define the correct file type. To edit the local file content in eXo IDE, do as follows:

Illustration. Example of opening the local REST service

The following table is the list of MIME types registered in the eXo IDE.

Table. Registered MIME Types


Note

To load the Google Gadget file, you should set the MIME Type as "application/x-google-gadget" in the "Open file" dialog as figured out in the below illustration:

Illustration. Open the Google Gadget file

To open a file by its path, for example Example.groovy, do as follows:

You can select View > Get URL... on the top menu to obtain the file path.

Note

The target file should be placed at the same domain as IDE.

File Template is stored in the IDE registry file, and then can be used to create another files with the same MIME type.

Project Template helps you create folders and files with the predefined structure and content. You can create, update or remove your project template and add new folders and files from your template.

To create a project template, do as follows:

Illustration. "Create project template" dialog window.

Once a file has been created/opened, its content is displayed in the separate tab on the Content Panel in the default Code Editor. eXo IDE Code Editor parses and colors the code, you can indent code, search text, locate open/close braces and brackets, see line numbers and more...

This feature enables you to autocomplete the word, including keywords, statements, declared variables, properties and methods, functions, objects, classes, tags, attributes, annotations in context of JavaScript, HTML, XML, Google Gadget, REST Service, Template, POGO, Netvibes Widget, Data Object files simply by clicking Ctrl+Space hotkeys. The Autocomplete form is shown as below.

Illustration. Autocomplete form

In the files of Google Gadget, HTML and Template types, the autocomplete list displays various content for each case, depending on the cursor position within the file. If the cursor is put between <script> tags, or between <style> tags, there will be the autocomplete list for JavaScript content, or for CSS content respectively. In the other places, the autocomplete list for the HTML content is displayed.

To use the Autocomplete function, do as follows:

Illustration. Autocomplete form with description

eXo IDE currently supports special features for the Groovy code autocomlete list, including REST Service ("application/x-jaxrs+groovy"), POJO ("application/x-groovy") and Data Object ("application/x-chromattic+groovy"). The autocomplete list varies, depending on Java types and is shown in the following cases:

IDE compiles classes, which is are described in the project's classpath, before generation of Autocomplete list. If the compilation of some class is failed, the error message will be appear in Output Panel instead of Autocomplete Form as shown below:

To display classes from folder, described as folder source in the project's classpath, in the Autocomplete Form, the files with such classes should fulfill conditions as follows:

The code outline is used to create codes productively. The outline is available for all types of files, expect for Text or CSS files.

Illustration. JavaScript Code Outline

The Outline Panel is opened automatically once a file has been created or opened. You can close the Outline Panel by clicking the Close button on the tab header. Also, you can show/hide the Outline Panel by pressing the Show/Hide Outline button on the toolbar or select View on the top menu and then select/deselect Outline from the drop-down menu.

In the Outline Panel, you can see the tree of variables, functions, classes, objects, methods, fields, parameters, annotations, HTML and XML tags with icon "< >", and special code delimiters like "<% ... %>" in the ECM Template file, or "CDATA" in the Google Gadget file as the illustrations below.

Illustration. ECM Template Code Outline

Illustration. Google Gadget Code Outline

The outline tree is refreshed automatically every two seconds after you stop typing the code. You can click the item in the outline tree. The cursor then sets on the line where this item is defined. When you move the cursor into the file content, the appropriate node is selected in the outline tree.