Skip Navigation

About Pop-up Dialogs

A pop-up dialog (referred to as a dialog in these topics) is an object that is similar to a window. Dialogs on Sabre Red 360 are the same as dialogs for most other applications. Dialogs can have any content that can be placed on an SWT Composite class, such as radio buttons, check boxes, text fields, and combo boxes.

Any of the following can trigger dialogs in Sabre Red 360:

  • End-user actions. As an example, an end-user chooses a menu option that displays a dialog.

  • Events. As examples, an agent closes Sabre Red 360, the connection to the Sabre GDS is lost, or user preferences are migrated successfully.

  • Editors and views. As an example, an end-user types a command in a Red App within an editor, and the command displays a dialog.

For dialogs, you can add menu contributions to the main menu in Sabre Red 360, however, this requires a generic command and handler.

The following is a typical flow for displaying a dialog:

  1. An end-user clicks a link to open an editor on a menu.

  2. The mouse click triggers the command that is bound to a handler.

  3. Eclipse locates the handler that is connected to the command, and then executes the methods in the handler.

  4. Eclipse displays the dialog on the Sabre Red 360 to the end-user.

  5. The end-user reads the message on the dialog and clicks a button.