摘要 |
A method for supporting versions of a menu includes identifying menu items for an application. The menu items are in a first menu and have state data used by functions to perform operations. The method includes generating indices from the menu items, generating a first table that includes the indices and the functions, and generating a second table that includes a portion of the indices. The indices in the first table correspond to the functions, the portion defines a subset of menu items for a second menu, and the portion of the indices corresponds to a portion of the state data. When an operation is to be performed, an index for the subset of menu items is used to determine state data corresponding to the index in the second table, and the index is used to determine a function corresponding to the index in the first table. |