Configuring OmniMark Studio for Eclipse

Configuring function library paths

Before creating any programs that use OmniMark's function libraries, you must configure OmniMark Studio for Eclipse to locate the library files. There are two kinds of files whose paths must be configured.

  • Include (.xin) and module (.xmd) files that contain OmniMark code that provides library functions or that provides links to functions contained in external function libraries.
  • External function libraries (.dll on Windows, .so on UNIX).

To set the paths to these files,

  1. Select Preferences from the Window menu.
  2. Open the OmniMark preferences in the left pane of the preferences dialog box and select paths.
  3. In the Include Path: section, click New... and select the xin directory of your OmniMark Studio for Eclipse installation.
  4. In the External Library Path: section, click New... and select the lib directory of your OmniMark Studio for Eclipse installation.
  5. Add the xin and lib directories for any include files or external libraries you have developed yourself or obtained from third parties.

Other configuration options

The following configuration options are also available:

Datascopes
Allows you to set the colors used to show data consumption in the datascopes
Debug Colors
Allows you to set the colors used to highlight code as you step through a program
Debug Behavior
Allows you to set whether the debugger stops on the first breakable line, and set whether throws are trapped by the debugger (so that you can examine the program state at the time the throw occurred).
Editor
Allows you turn line numbering on and off and set how the editor handles indents and tabs.
Syntax
Allows you to set the colors used to color various syntax items in the OmniMark editor.
Variable Behavior
Allows you to determine if shelf indexes and keys are displayed when viewing variable watch tables.

Eclipse file associations

File associations is a general Eclipse preference (Workbench – File associations in the preferences dialog). If you use extensions for your OmniMark code other than those predefined by OmniMark Studio for Eclipse (.xin, .xom, .xmd) then you may want to associate those extensions with the OmniMark Editor so that Eclipse will open them in the correct editor and the correct perspective.

Prerequisite Concepts