Skip Navigation

com.sabre.redapp.example.swt Sample

The com.sabre.redapp.example.swt sample demonstrates workbench elements within Sabre Red 360.

The following describes the files that this sample includes:

  • gets an instance of the plug-in.

  • is the definition or implementation of the vacation editor.

  • returns the identifier of the appropriate IElementFactory.

  • is a class that creates a new AbstractEditorInput class.

  • gets the agent objects.

  • creates the table in the database for the vacations of agents.

  • sorts or queries the agent vacation data.

  • creates the dialog in which agents add their vacation data.

  • also creates the content of the dialog.

  • is a class that creates the listener for the command.

  • gets an agent’s information.

  • defines the vacation data.

  • is a class that creates the layout for the composite, the data browser.

Running the Sample

  1. In Eclipse, import the com.sabre.redapp.example.swt 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.

  3. From the Tools > Other menu on the launcher bar, choose Vacation List. Add, edit, and delete names from the spreadsheet as desired.

The figure below shows the SWT sample plug-in.