Chapter 3 Building Structural Diagrams


Class property sheet Preview tab

The Preview tab allows you to preview the code that will be generated for the class.


Preview tools

The following tools and shortcut keys are available on the Preview tab:

Tool Description Shortcut Key

Open Editor Contextual menu. Shift + F11

Refresh. F5

Show Generation Options - This dialog box allows you to change generation options and see the impact on the code. This feature is especially useful when you are working with Java. For other object languages, generation options do not influence the code. ctrl + W

Select Generation Targets - displays the list of targets for the current object. If you add a generation target, the corresponding tab is added to the Preview tab. If you deselect a generation target, the corresponding tab disappears from the Preview tab.

This option is only available when at least one extended model definition flagged for generation is linked to the model, and when it contains Generated Files entries for the current object.

For more information on generation targets, see the "Generation targets" section in the Extended Model Definitions Reference Guide chapter, in the Advanced User Documentation .
ctrl + F6

Script bookmarks

In the Preview tab, you can add and remove bookmarks at specific points in the code and then navigate forwards or backwards from bookmark to bookmark:

Shortcut Description
ctrl + F2 Adds a new bookmark. A blue bookmark box is displayed. If you repeat this action from the same position, the bookmark is deleted and the blue marker disappears
F2 Jumps to bookmark
shift + F2 Jumps to previous bookmark

Note that bookmarks are not printable and are lost if you use the Refresh, or Show Generation Options tools.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.