Skip Navigation

com.sabre.redapp.example.view.basic Sample

The com.sabre.redapp.example.view.basic sample demonstrates the following functionality:

  • A vertical and a horizontal view. This plug-in launches both vertical and horizontal views with application sidebar properties and contributions to multiple menus in Sabre Red 360. The plug-in includes rules that establish when the horizontal view is visible.

  • Agent Profile Services. The IAgentProfileService in this plug-in uses various methods to retrieve profile data from an agent who is currently logged in to Sabre Red 360.

  • Internationalization services based on i18n. The plug-in uses internationalization services to translate text from English to Spanish when the plug-in is launched in Sabre Red 360. The text is in plugin.xml and the Java code.

Running the Sample Plug-in

To demonstrate translation capabilities, refer to the internationalization services topic in Related Topics for instructions about modifying your run configuration to view a new language in Sabre Red 360. You can also inspect the various files with translation messages and properties that this sample plug-in includes.

  1. In Eclipse, import the com.sabre.redapp.example.view.basic plug-in into your workspace and add it to your run configuration.

  2. Launch Sabre Red 360 from your run configuration, and log in with your CERT Sabre ID.

  1. From the Tools > Other menu on the launcher bar, choose Example View to display a vertical view.

  1. Click the Horizontal view button on the application sidebar to display the view horizontally.

If you minimize the horizontal view, the button on sidebar is dimmed.
  1. Choose Dialog Opening a View from Tools > Other on the application launcher bar. A dialog is displayed. Confirm that you want to open a vertical view and the view from point 3 will appear.