Using Formatter Simulator

About this task
To use Formatter Simulator, perform the following steps:
Note: You need to have the following two files: btt.xml and format.xml before you can use Formatter Simulator.
  1. Open the Formatter Simulator view:
    1. Click Window > Show View > Other....
    2. In the Show Viewdialog box that pops up, expand BTT Formatter Simulator, and select Simulator:

      Screen capture of the Show View dialog box.

    3. The Simulator view is opened:

      Screen captrue showing that the Simulator view is opened.

  2. In the project field of the Simulator view, click Browse to select a project,
    Note: The project needs to have the extended formatter elements and its classpath needs to contain bttcore.jar.
  3. In the btt.xml path field, click Browse to select the btt.xml file.
  4. In the Formatter ID filed, enter a fmtDef id defined in the format.xml, for example ListDataFmt as shown in the following screen capture:

    Screen capture showing the Formatter ID in format.xml.

    Screen capture of the Simulator

  5. Enter the corresponding Hex String of the Formatter ID in the Hex String field.
  6. Click Simulate, the Hex String is parsed into specific data items organized in a hierarchical tree.

    Screen capture showing the simulation result.

  7. If you click double-click a set of string in the Hex String filed, the corresponding data item is highlighted in the right box.

    Screen capture showing the data item is highlighted.

    If you click a specific data item in the right box, the corresponding string is also highlighted.

    If you double-click a data item, a dialog box pops up showing the code that correspond to the data item in the format.xml file.

    Screen capture of the code which corresponds to the data item.

  8. In the Console view, the simulation process is shown:

    Screen capture of the console view.