Rational Developer for System z

Edit / Check out

To check out or edit a member or group of members from the Package Explorer, highlight the members you want to edit, right click and select Team -> Edit / Check out.

This function copies the SCLM member data onto your workstation and places a lock on that SCLM member. The Package Explorer file decorator is also updated with a [MYLOCK] indicator text. The function overwrites the contents of the local file, therefore, if you previously saved the file in the Package Explorer without checking the file out and in, you are warned of that with a dialog. At this point you can do three things:
  1. Continue to check the file out and overwrite your local copy by selecting the Overwrite button.
  2. Keep your local copy of the file by selecting the Keep button.
  3. Cancel the function so that you can compare the version in the Package Explorer with the version in SCLM and then decide what the correct action is.

The IDE member is updated with a [MYLOCK] decorator and the file is opened with the default editor eclipse associates with that file type. SCLM uses a pessimistic locking model so concurrent edits are not possible. The file can then be edited, saved to the local workspace or checked in to SCLM.

You can check out members from any level of the SCLM hierarchy. The major feature of this is that if a member, at a group higher than your development group is checked out, it is copied down to your development group. This change is confirmed once the checked out member is saved. If you do not save the member or delete it, the member retains its original place in the SCLM development tree. When checking out from a higher level group, the file is copied down to your development group. It must then be built and promoted up the hierarchy to be returned to its original position.
Note: If you make changes to a member in the Package Explorer view before you check the file out, you will be prompted to overwrite your changes when you try to check out that file. If you elect to keep your changes, you should compare your copy of the file to the copy in SCLM before you check the file in to be sure you do not overwrite changes made by other users.

Feedback