To run or debug any program in Eclipse, you must create a launch configuration. Launch configurations are particular to the programming language you are using, so an OmniMark Launch Configuration is different from a Java Launch Configuration, for instance.
The quickest way to create an OmniMark launch configuration is to select
Run – Debug As –
OmniMark Program. This creates a default launch configuration that will run the OmniMark program
without any parameters and with the default options. To set parameters and change options you must create a
new Launch Configuration or edit an existing one. (Note that you can have more than one launch configuration
per program. This allows you to run your programs with different options depending on the launch
configuration you choose.)
To create a new launch configuration:
Run – Debug.... The launch configuration dialog is displayed.
OmniMark Applicationand choose
New. A new OmniMark launch configuration is created.
To edit an existing launch configuration, you can select
Run – Debug... and select it
from the list, or you can right click on the launch configuration in the
Debug window and select it
from the menu.
The OmniMark launch configuration dialog has three tabs,
The launch tab has the following settings:
Browsebutton to select the OmniMark project you want to run.
Browsebutton to select the OmniMark program you want to run. (You may need to type “*” in the dialog box to see the list of files in the project.
The parameters tab has the following settings:
dropbox=/temp/). Do not put whitespace around the “=” sign – it will be treated as part of the variable name or value. Whitespace at the end of the value will be dropped, however.
path=%path%;c:/eclipse...” is not supported.
Ignore global propertiesis equivalent to specifying -noea on the OmniMark command line.
Working directory will be:.
The common tab contains Eclipse options which are shared by many launch configurations.
You can construct a launch configuration by importing a project (.xop) file from standalone OmniMark Studio.
File – Import.... The import dialog will appear.
Standalone OmniMark Studio project fileand click
Browseto locate the project file you want to import.
For a fast run, debug or compile, in the Navigator window right click either a program file ".xom" or an OmniMark project file ".xop". Then select the processing desired. The launch configurations used to do this type of processing are not permanent and therefore cannot be reused.
If the run or debug is chosen on a program file then the program is immediately lanuched. In both cases, no command line arguments provided to the program so do not use these processing options if the program expects parameterization from the command line.
If the compile option is selected then the program is byte-compiled and stored in file with the same base name but with ".xvc" file suffix.
If run or debug is chosen on a project file then the program is immediately launched and the parameters specified in the project file are passed to the program.
If the compile option is selected then the program specifed in the project file is byte-compiled. If the project file does not specify a file to save the byte codes into then they are stored in a file with the same base name as the program file but with ".xvc" file suffix. If there is a byte code file name specified then it is used.