Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Java code > Reverse engineering legacy Java code > Modeling Java code in modeler > Generating an item's child items in a specific order (Java code)
  
Generating an item's child items in a specific order (Java code)
This topic applies to the child items of a Model, Package, Class, Data Type, Interface or Operation.
This topic applies to the child items (members) of a Model, Package, Class, Data Type, Interface or Operation:
You can specify members to generate first and the order those members should be generated.
You can specify the order in which other members are generated within their context, for example, the order in which Attributes are generated.
To specify which members are generated first (does not apply to an operation's members):
1. Open the Property Pages of the Model, Package, Class, Data Type or Interface for which you want to specify which members are generated first.
2. Click the Items tab.
3. In the Show Associated list, select Priority Generation Items.
4. Select the items to generate first:
a. Click the Link button.
b. In the left pane, select the appropriate folder, Package or item to display the items you want to order in the middle pane.
c. In the middle or right pane, select the check boxes associated with the items you want to order.
d. In the middle or right pane, clear the check boxes associated with the items you want to un-apply.
e. Click OK.
5. On the Items tab, for each item you want to move to a different position:
a. Select the item in the list.
b. Use the following buttons to move the item to the required position.
When generating the Model, Package, Class, Data Type or Interface, ACS will generate the items you ordered first in the order you specified, and then generate any other members.
To specify the order in which other members are generated:
1. Open the Property Pages of the Model, Package, Class, Data Type, Interface or Operation.
2. Click the Items tab.
3. In the Show Associated list, select the required entry. Note that for a Package, select All Package Items to order items.
Attributes orders child Attributes.
Operations orders child Operations.
Type Definitions orders child Type Definitions.
Nested Classes orders child Classes, Data Types and Interfaces.
All Package Items (for a Package only) orders child items other than Attributes and Operations.
4. For each item you want to move to a different position.
a. Select the item in the list.
b. Use the following buttons to move the item to the required position.
* 
Changing the order of items on the Items tab does not affect the order in which the items are displayed on the Packages pane.