PDP Source Code editor
You use this editor to see and modify the generated code of a Source Code instance. This editor complements the functions of the standard code editor.
To see the code through this editor, you must have generated a Source Code instance. Then, in the Design Explorer view, right-click the corresponding generated file and select .
Modifying the generated code
You can modify the generated code to adapt it to your particular needs.
You can insert code lines easily by calling Static Micropatterns from the Snippets view, RPP SDK Micropattern Snippets category. You can also call micropatterns that were created with the application programming interface. It is strongly recommended not to modify the code that is generated by a micropattern. Warnings in the margin indicate where the insertion of specific code can disrupt the reconciliation. Such is the case if you override a line that is generated by a micropattern and add a micropattern call in the specific code that is generated by a micropattern.

If a file is generated with the generation process implemented from Rational® Programming Patterns version 9.6.1, some design modifications are not considered meaningful and do not cause any desynchronization. Such is the case, for example, for the modifications in the -GC Lines or the Keywords.
Desynchronization between the design and the generated code


Specific display of the PDP Source Code editor
The PDP coloring, on top of the standard editor coloring, identifies the origin of the lines. By default, the generated code lines are gray and the micropattern lines are blue.
You can change these PDP default colors by selecting .
is displayed if code lines were deleted or overwritten. If you place your mouse over this symbol, you can see the deleted line or the line that was overwritten by the current line.
is displayed in the following cases:
- On the lines where the reconciliation detects a potential problem. The
reconciliation is the process that integrates, after a generation, the new design of an instance
with the user-specific changes. A warning is displayed, for example, when the reconciliation is not
sure where it must place the specific code because several places are possible, or when the
overwritten generated code has changed. These warnings have a PDP Reconciliation
Marker type in the Problems view.
In the Pacbase facet, quick fixes are available for the reconciliation warnings that indicate that the user code cannot be carried over because its initial position no longer exists.
- On the lines where a micropattern has set a warning.
- On the lines where the reconciliation detects a potential problem. The
reconciliation is the process that integrates, after a generation, the new design of an instance
with the user-specific changes. A warning is displayed, for example, when the reconciliation is not
sure where it must place the specific code because several places are possible, or when the
overwritten generated code has changed. These warnings have a PDP Reconciliation
Marker type in the Problems view.
You can change the display in the PDP editor with filters from the Generated Code Structure view.