Adding static blocks to classes in a model

About this task

To add a static block to a class:

Procedure

  1. Right‑click the class in the browser and select Add New > StaticBlock. (Alternatively, right‑click the class in an object model diagram and select New StaticBlock.)
  2. Open the Features window for the newly created static block, and on the Implementation tab enter the code for the body of the block.

Feedback