Atelier Editor Features

The Atelier editor support includes the following features:

Line Numbers

Tools often report errors in terms of line numbers in the file. You can set Atelier editors to display line numbers by selecting Window > Preferences from the main menu, then, select General workspace preferences General > Editors > Text Editors. On this page, select the Show line numbers check box, as shown:

Compile

To navigate to a line number in a file, select Navigate > Go to Line from the main menu.

Content Assist

When you type the content assist keystrokes, CTRL+Space, the editor opens a pop-up box listing possible completions given the context of the current cursor position. See Editor Content Assist.

View Class Documentation

Hover the cursor over the name of a class to open an in-place window that displays documentation for the item under the cursor. Pressing F2 shifts focus to the documentation pop-up so you can scroll through the content. If the Atelier Documentation View is open, selecting a class name in the editor opens documentation in that view.

View Web Page

The View Web Page toolbar button View Web Page opens a file as a web page in a browser. It is enabled only when the file content can be displayed as a web page. The file must be both selected and open in the Atelier editor.

Compilation and Synchronization

Select Compile or Synchronize from the right-click context menu to compile or synchronize the current file. You can also use the Compile toolbar button Compile to compile the file.

Code Navigation

Quick Outline

Press CTRL+O or select Navigate > Quick Outline from the main menu to see an in-place outline of the content of the current source file. Press CTRL+O again to show inherited members. You can navigate to the definition of any item in the list by clicking on an it. The following image shows the quick outline pop-up with inherited members visible:

Quick outline

Quick outline works in Atelier editors much as it does for editing in Java. See the topic Using quick views in the Java Development User Guide.

Outline View

When a file is open in an Atelier editor, the Outline view shows the logical structure of the file. This view is updated as you edit, and you can use it to navigate to elements in the file. The following image shows the outline view to the right of the editor area. The user has just navigated to the method Greeting by clicking in the outline view.

Outline view

The Outline view works in Atelier editors much as it does for editing in Java. See the topic Outline view in the Workbench User Guide.

View Others

Select View Others from the editor right-click context menu to open intermediate files created during compilation so you can view the generated code. You can also click the View Other toolbar button View Other Project. Intermediate files are created on the server during compilation, and they are stored on the server. Such files open with a background color that indicates they have been opened on the server in read-only mode. If you need to edit an intermediate file, you must first copy it to the project in the workspace, using the Copy to Project command on the Sever Explorer context menu.

The Compilation preference Keep generated source code (k) must be selected in order to retain the generated files. See the topic Compilation. It is selected by default.

Open Declaration

Click on the name of a class, method, or property. You can then right-click to open a context menu and select Open Declaration, which navigates to the declaration of the object, opening the file if necessary.

Open Atelier Class/Routine

Select Navigate > Open Atelier Class/Routine from the main menu or click on the icon Interactive search in the main toolbar. The dialog box that opens lets you search for classes or routines declared anywhere in the workspace. Type the class or routine name, using wildcard characters ? for any single character and * for any string. Recently visited files appear first in the results list, followed by other matches in the workspace.

Navigation Forward and Back

You can use the Back, Forward, and Last Edit Location items on the Navigate menu to move between locations in code files you have visited. You can also use the Previous file, Next file and Last edit location buttons on the main toolbar,

Server Search

You can search on the server using the Atelier search tab. Click on an item in the results list to navigate to that code on the server. See Atelier Search Tab.

Open the BPL Editor

If you are working in an Ensemble-enabled project, you can open the Business Process Language (BPL) editor from the Atelier editor. First open a BPL business process class in the Atelier editor, then right-click in the editor window and select Open diagram editor from the context menu, as shown in the following image.

Open the BPL editor

Related InterSystems documentation

Developing BPL Processes

Related concepts

Atelier Editor
Atelier Views
Atelier Perspectives
Atelier Search Tab

Related tasks

Creating an Atelier Class File
Creating an Atelier Routine File

Related reference

Editor Content Assist
Atelier Documentation View
Atelier Explorer View
Project Explorer View
Server Explorer View
Preferences:
Editors
Templates
Color
Compilation