
Chapter 4 Working with an XML model
Updating an existing XML model
There are two ways to update an existing XML model, depending on whether the Preserve modifications option is selected or not:
Preserve modifications
|
Result
|
Selected
|
You can manually compare and merge the existing XML model (right pane) with the newly generated XML model (left pane)
|
Not selected
|
The existing XML model is automatically replaced by the newly generated XML model
|
If the Preserve modifications check box is selected, the Merge Models window appears after the new XML model has been successfully generated. You can use the Merge window to select objects to be updated, deleted, or added to the model to be merged. The model must be open in the workspace to be merged with a source model.
If the Preserve modifications check box is not selected, the existing model is replaced.
You can only generate an XML model from the active OOM diagram window.
To update an existing XML model by generating from an OOM:
- Select Tools→Generate XML Model to display the XML Model Generation Options dialog box.
If you do not have an XML model in the current workspace, the Update existing XML Model option is not available.
- Select the Update existing XML Model radio button.
- Select a model from the Select model dropdown listbox, if the current model has already been generated.
or
Click the Ellipsis button, beside the Select model dropdown listbox, and select an existing model in the Select a model dialog box.
Preserve modifications
Select the Preserve modifications check box if you want to preserve objects in the XML model.
If you clear this check box, all existing objects in the XML model will be removed from the model, leaving only the objects generated from the OOM.
- Click the Detail tab to define options and generation parameters.
- Click the Target Models tab to select the target models of shortcuts in the current model.
- Click the Selection tab to display the Selection page.
- Select the name of an OOM from the Select Location dropdown listbox. The default XML model is generated from this PDM.
Generating an XML model from a package
To generate an XML model from a package, select the package name from the dropdown listbox in the upper left corner of the dialog box. To generate an XML model from a sub-package, select a sub-package from the dropdown listbox in the upper left corner of the dialog box, or select a package name and click the Include Sub-Objects tool next to this dropdown listbox.
- Select the check boxes for the objects you want to generate, and clear the check boxes for the objects you do not want to generate.
- Click OK.
If you selected the Preserve modifications check box, the Merge Models window appears.
If you cleared the Preserve modifications check box, the updated XML model diagram appears in the work area.
Merging models
The Merge Models dialog box shows the newly generated XML model in the left pane, and the existing XML model in the right pane. You can select or clear object check boxes in the right pane for XML model objects that you want to include or delete in the model to be merged.
For more information on merging models, see Comparing and Merging Models in the General Features Guide
.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|