Show TOC

 Locking a Class for EditLocate this document in the navigation structure

Use

The Source Code-Based Class Builder supports the following modes of editing a class:

  • Regular locking: allows you to edit the whole class and does not allow any other users to edit the class at the same time. It effectively locks the whole class (all the sections and the methods).
  • On-demand locking: allows you to lock specific sections or methods and allows others to edit other parts of the class. It is available only for standard classes.
Procedure

Regular locking is activated when you open a class in change mode. In this case, the complete source code is locked and other users are not able to edit any part of the class.

To activate on-demand locking in the source code mode of the Class Builder:

  1. Open the class in display mode.
  2. Right-click on the section or method you want to edit and in the context menu choose Public/Private/Protected Section or METH → Edit.

    Only the current section or method is locked (if it has not been locked by another user).

  3. Edit the class.
  4. Save the section or method.
  5. To unlock the section or method in on-demand locking mode, right-click again on the section or method and in the context menu choose Unlock Public/Private/Protected Section or METH → Edit.

See also:

Implementing Methods