Studio Tutorial

Here is how to create and run your first OmniMark program in OmniMark Studio for Eclipse:

  1. Start Eclipse.
  2. Choose File -> New -> Project. The New project dialog is displayed.
  3. Select OmniMark -> OmniMark Project, and click Next.
  4. Enter the project name: “Hello” and click Finish. You will be prompted to switch perspectives to an OmniMark perspective.
  5. Click Yes. The OmniMark perspective is displayed.
  6. Right click the project folder in the Navigator window and choose New -> File. The New File dialog is displayed.
  7. Enter the file name “hello.xom” in the File name box at the bottom of the dialog box and click Finish. An editor window opens.
  8. Type in the following program:

  process
     output "Hello " || #args
        
  1. Save the file.
  2. Choose Debug Configurations… from the Debug button or the Run menu. The Debug dialog appears.
  3. Right click on OmniMark Application and choose New. The launch configuration dialog appears.
  4. In the OmniMark Project selection, click Browse and select the “hello” project.
  5. In the OmniMark Program selection, click Browse and select the “hello.xom” file. (You may have to begin typing the name before it appears in the list.)
  6. Select the “Parameters” tab.
  7. Select the “Arguments” tab.
  8. Type in “World” and click Debug. The dialog closes and the program is shown in the OmniMark debug perspective.
  9. Click the step into button to step through the program. Program output is shown in the console window.

Prerequisite Concepts