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.
- Open the Formatter Simulator view:
- Click .
- In the Show Viewdialog box that pops up, expand BTT
Formatter Simulator, and select Simulator:
- The Simulator view is opened:
- 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.
- In the btt.xml path field, click Browse to
select the btt.xml file.
- In the Formatter ID filed, enter a fmtDef
id defined in the format.xml, for example ListDataFmt as
shown in the following screen capture:
- Enter the corresponding Hex String of the Formatter ID in the Hex
String field.
- Click Simulate, the Hex String is parsed into specific
data items organized in a hierarchical tree.
- If you click double-click a set of string in the Hex String filed,
the corresponding data item is highlighted in the right box.
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.
- In the Console view, the simulation process is
shown: